-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: drop eslint < 8.57.1; add v9
- Loading branch information
Showing
29 changed files
with
438 additions
and
102 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const globals = require('globals'); | ||
const js = require('@eslint/js') | ||
const json = require('eslint-plugin-json'); | ||
|
||
module.exports = [ | ||
{ | ||
files: [ | ||
"**/*.js", | ||
"**/*.mjs", | ||
"**/*.cjs", | ||
], | ||
...js.configs.recommended, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.commonjs, | ||
...globals.es2015, | ||
...globals.node, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2022, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.js'], | ||
languageOptions: { | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
}, | ||
{ | ||
ignores: [ | ||
'node_modules/**', | ||
'coverage/**', | ||
'.nyc_output/**', | ||
'dist/**', | ||
], | ||
}, | ||
{ | ||
files: ['**/*.json'], | ||
...json.configs.recommended, | ||
}, | ||
]; |
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 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,12 @@ | ||
const eslintrc = require('./eslintrc'); | ||
const merge = require('lodash/merge'); | ||
const plugin = require('eslint-plugin-plugin'); | ||
|
||
module.exports = merge(eslintrc, { | ||
plugins: { | ||
plugin | ||
}, | ||
rules: { | ||
"plugin/duplicate-bar-rule": [2] | ||
} | ||
}); |
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,34 @@ | ||
const plugin = require('eslint-plugin-plugin'); | ||
const scopeEslintPluginScopedPlugin = require('@scope/eslint-plugin-scoped-plugin'); | ||
const scope = require('@scope/eslint-plugin'); | ||
const scopeWithDashEslintPluginScopedWithDashPlugin = require('@scope-with-dash/eslint-plugin-scoped-with-dash-plugin'); | ||
const scopeWithDash = require('@scope-with-dash/eslint-plugin'); | ||
|
||
module.exports = { | ||
plugins: { | ||
plugin, | ||
'@scope/scoped-plugin': scopeEslintPluginScopedPlugin, | ||
'@scope': scope, | ||
'@scope-with-dash/scoped-with-dash-plugin': scopeWithDashEslintPluginScopedWithDashPlugin, | ||
'@scope-with-dash': scopeWithDash | ||
}, | ||
rules: { | ||
'foo-rule': [2], | ||
'old-rule': [2], | ||
|
||
'plugin/foo-rule': [2], | ||
'plugin/old-plugin-rule': [2], | ||
|
||
'@scope/scoped-plugin/foo-rule': [2], | ||
'@scope/scoped-plugin/old-plugin-rule': [2], | ||
|
||
'@scope/foo-rule': [2], | ||
'@scope/old-plugin-rule': [2], | ||
|
||
'@scope-with-dash/scoped-with-dash-plugin/foo-rule': [2], | ||
'@scope-with-dash/scoped-with-dash-plugin/old-plugin-rule': [2], | ||
|
||
'@scope-with-dash/foo-rule': [2], | ||
'@scope-with-dash/old-plugin-rule': [2] | ||
} | ||
} |
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,40 @@ | ||
const plugin = require('eslint-plugin-plugin'); | ||
const scopeEslintPluginScopedPlugin = require('@scope/eslint-plugin-scoped-plugin'); | ||
const scope = require('@scope/eslint-plugin'); | ||
const scopeWithDashEslintPluginScopedWithDashPlugin = require('@scope-with-dash/eslint-plugin-scoped-with-dash-plugin'); | ||
const scopeWithDash = require('@scope-with-dash/eslint-plugin'); | ||
|
||
module.exports = [ | ||
{ | ||
plugins: { | ||
plugin, | ||
}, | ||
rules: { | ||
"foo-rule": [2], | ||
"old-rule": [2], | ||
|
||
"plugin/old-plugin-rule": [2] | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.json"], | ||
plugins: { | ||
'@scope/scoped-plugin': scopeEslintPluginScopedPlugin, | ||
'@scope': scope, | ||
}, | ||
rules: { | ||
"@scope/scoped-plugin/foo-rule": [2], | ||
"@scope/foo-rule": [2] | ||
} | ||
}, | ||
{ | ||
files: ["**/*.txt"], | ||
plugins: { | ||
'@scope-with-dash/scoped-with-dash-plugin': scopeWithDashEslintPluginScopedWithDashPlugin, | ||
'@scope-with-dash': scopeWithDash | ||
}, | ||
rules: { | ||
"@scope-with-dash/scoped-with-dash-plugin/old-plugin-rule": [2] | ||
} | ||
} | ||
]; |
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,10 @@ | ||
const plugin = require('eslint-plugin-plugin'); | ||
const eslintPluginNoRules = require('eslint-plugin-no-rules'); | ||
|
||
module.exports = { | ||
plugins: { | ||
plugin, | ||
'no-rules': eslintPluginNoRules | ||
}, | ||
rules: {} | ||
} |
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,26 @@ | ||
const eslintYml = require('./eslint_yml'); | ||
const plugin = require('eslint-plugin-plugin'); | ||
const scopeEslintPluginScopedPlugin = require('@scope/eslint-plugin-scoped-plugin'); | ||
const scope = require('@scope/eslint-plugin'); | ||
const scopeWithDashEslintPluginScopedWithDashPlugin = require('@scope-with-dash/eslint-plugin-scoped-with-dash-plugin'); | ||
const scopeWithDash = require('@scope-with-dash/eslint-plugin'); | ||
|
||
module.exports = [ | ||
eslintYml, | ||
{ | ||
plugins: { | ||
plugin, | ||
'@scope/scoped-plugin': scopeEslintPluginScopedPlugin, | ||
'@scope': scope, | ||
'@scope-with-dash/scoped-with-dash-plugin': scopeWithDashEslintPluginScopedWithDashPlugin, | ||
'@scope-with-dash': scopeWithDash | ||
}, | ||
rules: { | ||
'@scope/scoped-plugin/foo-rule': [2], | ||
'@scope/foo-rule': [2], | ||
|
||
'@scope-with-dash/scoped-with-dash-plugin/foo-rule': [2], | ||
'@scope-with-dash/foo-rule': [2] | ||
} | ||
} | ||
]; |
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,8 @@ | ||
const eslintrc = require('./eslintrc'); | ||
const merge = require('lodash/merge'); | ||
|
||
module.exports = merge(eslintrc, { | ||
rules: { | ||
'bar-rule': [2] | ||
} | ||
}); |
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,5 @@ | ||
module.exports = { | ||
rules: { | ||
"foo-rule": [2] | ||
} | ||
} |
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,5 @@ | ||
module.exports = { | ||
rules: { | ||
'foo-rule': [2] | ||
} | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
module.exports = [ | ||
{ | ||
files: ["**/*.js"], | ||
plugins: { | ||
plugin: { | ||
rules: { | ||
"foo-rule": {}, | ||
"old-plugin-rule": { meta: { deprecated: true } }, | ||
"bar-rule": {}, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
"foo-rule": [2], | ||
"plugin/foo-rule": [2], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.json"], | ||
plugins: { | ||
jsonPlugin: { | ||
rules: { "foo-rule": {} }, | ||
}, | ||
}, | ||
rules: { | ||
"jsonPlugin/foo-rule": [2], | ||
}, | ||
}, | ||
]; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
some files |
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,7 @@ | ||
{ | ||
"name": "fake-project", | ||
"version": "0.0.0", | ||
"description": "Simulating a project's package.json.", | ||
"private": true, | ||
"main": "./index.js" | ||
} |
Oops, something went wrong.