Skip to content

Commit

Permalink
Migrate all eslint configs to flat config format
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Dec 27, 2024
1 parent da773d8 commit 640d26c
Show file tree
Hide file tree
Showing 109 changed files with 2,603 additions and 3,650 deletions.
70 changes: 0 additions & 70 deletions .eslintrc.json

This file was deleted.

20 changes: 0 additions & 20 deletions apps/api/.eslintrc.json

This file was deleted.

24 changes: 24 additions & 0 deletions apps/api/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
ignores: ['src/assets/**/*'],
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'no-empty-pattern': 'off',
},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
];
18 changes: 0 additions & 18 deletions apps/cron-tasks/.eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions apps/cron-tasks/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
];
22 changes: 0 additions & 22 deletions apps/docs/.eslintrc.json

This file was deleted.

28 changes: 28 additions & 0 deletions apps/docs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
ignores: ['.docusaurus', 'build', 'node_modules'],
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
languageOptions: {
parserOptions: {
project: ['apps/docs/tsconfig.*?.json'],
},
},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
];
18 changes: 0 additions & 18 deletions apps/download-zip-sw/.eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions apps/download-zip-sw/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
];
18 changes: 0 additions & 18 deletions apps/geo-ip-api/.eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions apps/geo-ip-api/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
];
24 changes: 0 additions & 24 deletions apps/jetstream-e2e/.eslintrc.json

This file was deleted.

34 changes: 34 additions & 0 deletions apps/jetstream-e2e/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { FlatCompat } = require('@eslint/eslintrc');
const js = require('@eslint/js');
const baseConfig = require('../../eslint.config.js');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});

module.exports = [
...baseConfig,
...compat.extends('plugin:playwright/recommended'),
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
files: ['src/**/*.{ts,js,tsx,jsx}'],
// Override or add rules here
rules: {},
},
];
22 changes: 0 additions & 22 deletions apps/jetstream-web-extension-e2e/.eslintrc.json

This file was deleted.

Loading

0 comments on commit 640d26c

Please sign in to comment.