-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
long-time plan: v6: no action v7: rename 'flat/*' => '*'; eslintrc config '*' => 'legacy/*'? v8~: remove eslintrc supports
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
/** | ||
* @deprecated use 'flat/all-type-checked' instead | ||
* @author 唯然<[email protected]> | ||
*/ | ||
'use strict'; | ||
Check failure on line 5 in configs/all-type-checked.js GitHub Actions / lint
|
||
|
||
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'] | ||
Check failure on line 9 in configs/all-type-checked.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/all.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/recommended.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/rules-recommended.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/rules.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/tests-recommended.js GitHub Actions / lint
|
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'] | ||
Check failure on line 11 in configs/tests.js GitHub Actions / lint
|