-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: upgrade cli eslint to 9 #32446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
5a864ec
0edb60a
9b3dce7
ee4ab1a
622995c
0a068b6
6e71588
2a453b0
7c9d218
1a26411
e4aa12e
4ee9ff8
c14338c
11b57f0
30ee9e3
7b31976
43edb17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { baseConfig, cliOverrides } from '@packages/eslint-config' | ||
|
||
export default [ | ||
...baseConfig, | ||
...cliOverrides, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
'@stylistic/comma-dangle': 'warn', | ||
'@stylistic/comma-spacing': 'warn', | ||
'@stylistic/type-generic-spacing': 'warn', | ||
'@stylistic/quotes': 'warn', | ||
'@stylistic/arrow-parens': 'warn', | ||
'@stylistic/no-multi-spaces': 'warn', | ||
'padding-line-between-statements': 'warn', | ||
'@stylistic/space-unary-ops': 'warn', | ||
'@stylistic/member-delimiter-style': 'warn', | ||
'@stylistic/object-curly-spacing': 'warn', | ||
'@stylistic/semi': 'warn', | ||
'@stylistic/space-in-parens': 'warn', | ||
'@stylistic/space-infix-ops': 'warn', | ||
'@stylistic/template-tag-spacing': 'warn', | ||
'no-var': 'warn', | ||
'@stylistic/space-before-function-paren': ['warn', 'always'], | ||
}, | ||
}, | ||
{ | ||
ignores: [ | ||
'**/__snapshots__', | ||
'**/build/**/*', | ||
'package.json', | ||
'**/angular/**/*', | ||
'**/react/**/*', | ||
'**/vue/**/*', | ||
'**/svelte/**/*', | ||
'**/mount-utils/**/*', | ||
'**/types/{bluebird,chai,chai-jquery,jquery,lodash,minimatch,mocha,sinon,sinon-chai}/**/*', | ||
'.mocharc.js', | ||
'**/*.js', | ||
], | ||
}, | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"lib": [ | ||
"node", | ||
], | ||
"exactOptionalPropertyTypes": true, | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"strictNullChecks": true, | ||
"strictFunctionTypes": true, | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"types": [], | ||
"noEmit": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"esModuleInterop": true | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
] | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
"noImplicitAny": false, | ||
"types": [ | ||
"mocha", "chai", "sinon" | ||
] | ||
} | ||
], | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDir": "./lib", | ||
"outDir": "./dist", | ||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does the linting allow for these comments? |
||
"module": "commonjs", /* Specify what module code is generated. */ | ||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ | ||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ | ||
"resolveJsonModule": true, | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */ | ||
"noImplicitAny": false, | ||
}, | ||
"include": [ | ||
"lib/**/*.ts", | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
"include": [ | ||
"lib/**/*.mts" | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDir": "./lib", | ||
"rootDir": "./", | ||
"outDir": "./dist", | ||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | ||
"module": "commonjs", /* Specify what module code is generated. */ | ||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ | ||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ | ||
"target": "ES2022", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should the other configs extend from this config? |
||
"module": "commonjs", | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */ | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"noImplicitAny": false, | ||
"noEmit": true, | ||
"types": [ | ||
"mocha" | ||
] | ||
}, | ||
"include": [ | ||
"lib/**/*.ts", | ||
"test/**/*.ts", | ||
"*.ts" | ||
], | ||
"exclude": [ | ||
"types/bluebird", | ||
"types/chai", | ||
"types/chai-jquery", | ||
"types/jquery", | ||
"types/lodash", | ||
"types/minimatch", | ||
"types/mocha", | ||
"types/sinon", | ||
"types/sinon-chai", | ||
"react", | ||
"vue", | ||
"angular", | ||
"svelte", | ||
"mount-utils", | ||
] | ||
} |
Uh oh!
There was an error while loading. Please reload this page.