-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
1 deletion.
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,26 @@ | ||
const index = require('./index'); | ||
const bestPractices = require('./rules/best-practices'); | ||
const errors = require('./rules/errors'); | ||
const node = require('./rules/flat/node'); | ||
const style = require('./rules/style'); | ||
const variables = require('./rules/variables'); | ||
const es6 = require('./rules/flat/es6'); | ||
const imports = require('./rules/flat/imports'); | ||
const strict = require('./rules/strict'); | ||
|
||
module.exports = [ | ||
bestPractices, | ||
errors, | ||
node, | ||
style, | ||
variables, | ||
es6, | ||
imports, | ||
strict, | ||
{ | ||
languageOptions: { | ||
parserOptions: index.parserOptions, | ||
}, | ||
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
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 es6 = require('../es6'); | ||
const globals = require('globals'); | ||
|
||
module.exports = { | ||
languageOptions: { | ||
globals: { | ||
...globals.es2015, | ||
}, | ||
parserOptions: es6.parserOptions, | ||
}, | ||
rules: es6.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,17 @@ | ||
const importPlugin = require('eslint-plugin-import'); | ||
const globals = require('globals'); | ||
const imports = require('../imports'); | ||
|
||
module.exports = { | ||
languageOptions: { | ||
globals: { | ||
...globals.es2015, | ||
}, | ||
parserOptions: imports.parserOptions, | ||
}, | ||
plugins: { | ||
import: importPlugin | ||
}, | ||
settings: imports.settings, | ||
rules: imports.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,11 @@ | ||
const globals = require('globals'); | ||
const node = require('../node'); | ||
|
||
module.exports = { | ||
languageOptions: { | ||
globals: { | ||
...globals.es2015, | ||
} | ||
}, | ||
rules: node.rules, | ||
}; |