Skip to content

Commit

Permalink
feat: migrate deprecated rules to https://eslint.style 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Feb 7, 2024
1 parent b222f73 commit 1a617cd
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 149 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@ module.exports = {
rules: {
// If your editor cannot show these to you, occasionally turn this off and run the linter
'no-warning-comments': 0,

// TODO: eslint-plugin-node does not correctly recognise `ecmaVersion: 2021`
'node/no-unsupported-features/es-syntax': ['error', {
version: '>=20',
}],
},
}
104 changes: 104 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const globs = require('./globs')
module.exports = {

plugins: [
'@stylistic',
'import',
],

Expand Down Expand Up @@ -162,7 +163,7 @@ module.exports = {
// JavaScript will more or less let you put semicolons after any statement without complaining.
// Typos and misunderstandings about where semicolons are required can lead to extra semicolons
// that are unnecessary.
'no-extra-semi': 'error',
'@stylistic/no-extra-semi': 'error',

// Disallow Function Assignment
// JavaScript functions can be written as a FunctionDeclaration `function foo() { ... }` or as a
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-config-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"Danny Kijkov <[email protected]>"
],
"dependencies": {
"eslint-plugin-import": "^2.27.0"
"eslint-plugin-import": "^2.27.0",
"@stylistic/eslint-plugin": "^1.6.0"
},
"engines": {
"node": ">=20"
Expand Down
Loading

0 comments on commit 1a617cd

Please sign in to comment.