-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from gjsify/upgrade-eslint
Upgrade ESLint 8 to 9
- Loading branch information
Showing
64 changed files
with
979 additions
and
935 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
@types/ | ||
node_modules/ | ||
lib/ | ||
tmp/ | ||
test/ | ||
templates/ | ||
examples/ | ||
@types/ | ||
*.js | ||
*.cjs | ||
*/*.js | ||
*/*.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from '@typescript-eslint/eslint-plugin'; | ||
import tsparser from '@typescript-eslint/parser'; | ||
import prettier from 'eslint-config-prettier'; | ||
|
||
export default [ | ||
// Base config for all files | ||
{ | ||
ignores: [ | ||
'**/node_modules/**', | ||
'**/cli/lib/**', | ||
'**/generator-base/lib/**', | ||
'**/generator-html-doc/lib/**', | ||
'**/lib/lib/**', | ||
'**/generator-typescript/lib/**', | ||
'**/parser/lib/**', | ||
'**/tmp/**', | ||
'**/dist/**', | ||
'**/test/**', | ||
'**/templates/**', | ||
'**/examples/**', | ||
'**/@types/**', | ||
'**/*.js', | ||
'**/*.cjs', | ||
] | ||
}, | ||
|
||
// TypeScript files | ||
{ | ||
files: ['**/*.ts'], // Explicitly specify files to lint | ||
languageOptions: { | ||
parser: tsparser, | ||
parserOptions: { | ||
project: ['./packages/*/tsconfig.json'], | ||
}, | ||
globals: { | ||
imports: true | ||
} | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tseslint | ||
}, | ||
rules: { | ||
'semi': ['error', 'never'], | ||
'quotes': ['error', 'single'], | ||
'no-debugger': 'off', | ||
'@typescript-eslint/triple-slash-reference': 'off', | ||
'camelcase': 'off', | ||
'@typescript-eslint/camelcase': 'off' | ||
} | ||
}, | ||
|
||
// Special rules for .d.ts files | ||
{ | ||
files: ['**/*.d.ts'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off' | ||
} | ||
}, | ||
|
||
prettier | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.