-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-export flat configs "flat/*" (#453)
* feat: re-export flat configs "flat/*" long-time plan: v6: no action v7: rename 'flat/*' => '*'; eslintrc config '*' => 'legacy/*'? v8~: remove eslintrc supports
- Loading branch information
1 parent
f4d8cb1
commit e3b27e2
Showing
11 changed files
with
100 additions
and
58 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
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,8 +1,10 @@ | ||
/** | ||
* @deprecated use 'flat/all-type-checked' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs['all-type-checked'].rules, | ||
}; | ||
module.exports = plugin.configs['flat/all-type-checked']; |
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,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `all` config for `eslint.config.js` | ||
* @deprecated use 'flat/all' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs.all.rules, | ||
}; | ||
module.exports = plugin.configs['flat/all']; |
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,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `recommended` config for `eslint.config.js` | ||
* @deprecated use 'flat/recommended' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs.recommended.rules, | ||
}; | ||
module.exports = plugin.configs['flat/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `rules-recommended` config for `eslint.config.js` | ||
* @deprecated use 'flat/rules-recommended' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs['rules-recommended'].rules, | ||
}; | ||
module.exports = plugin.configs['flat/rules-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `rules` config for `eslint.config.js` | ||
* @deprecated use 'flat/rules' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs.rules.rules, | ||
}; | ||
module.exports = plugin.configs['flat/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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `tests-recommended` config for `eslint.config.js` | ||
* @deprecated use 'flat/tests-recommended' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs['tests-recommended'].rules, | ||
}; | ||
module.exports = plugin.configs['flat/tests-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/** | ||
* @fileoverview the `tests` config for `eslint.config.js` | ||
* @deprecated use 'flat/tests' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mod = require('../lib/index.js'); | ||
const plugin = require('../lib/index.js'); | ||
|
||
module.exports = { | ||
plugins: { 'eslint-plugin': mod }, | ||
rules: mod.configs.tests.rules, | ||
}; | ||
module.exports = plugin.configs['flat/tests']; |
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