-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(presets): add node-fermium entrypoint (for node 14)
- Loading branch information
1 parent
5f4da1c
commit 5659f96
Showing
3 changed files
with
49 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
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,43 @@ | ||
import { Linter } from 'eslint'; | ||
|
||
import { baseRules, getImportRules, getNodeRules } from '~/rules'; | ||
|
||
/** | ||
* Config for Node.js 12 (Erbium) | ||
*/ | ||
const config: Linter.Config = { | ||
overrides: [ | ||
{ | ||
files: ['*.js', '*.mjs', '*.cjs'], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
}, | ||
extends: [ | ||
// | ||
'eslint:recommended', | ||
'plugin:node/recommended', | ||
'plugin:import/recommended', | ||
'plugin:unicorn/recommended', | ||
'prettier', | ||
], | ||
plugins: [ | ||
// | ||
'node', | ||
'import', | ||
'unicorn', | ||
], | ||
rules: { | ||
...baseRules, | ||
...getImportRules({ | ||
pathsGroups: [ | ||
{ group: 'internal', pattern: '@/**' }, | ||
{ group: 'internal', pattern: '~/**' }, | ||
], | ||
}), | ||
...getNodeRules({ nodeVersionRange: '^14.0.0' }), | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default config; |