Skip to content

Commit

Permalink
fix: add module related rules for eslint config
Browse files Browse the repository at this point in the history
remove invalid `last 1 Node version` query for browserslist
  • Loading branch information
JounQin committed Sep 7, 2019
1 parent 069e6a1 commit 5d1c36c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/browserslist-config/latest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ module.exports = [
'last 1 ChromeAndroid version',
'last 1 FireFox version',
'last 1 iOS version',
'last 1 Node version',
'last 1 Safari version',
]
20 changes: 20 additions & 0 deletions packages/eslint-config/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ exports.ts = {
'node/no-missing-import': [
2,
{
allowModules: ['unist'],
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
},
],
'node/no-missing-require': [
2,
{
allowModules: ['unist'],
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
},
],
Expand Down Expand Up @@ -196,6 +204,12 @@ exports.react = {
tryExtensions: ['.tsx', '.jsx', '.js', '.json', '.node'],
},
],
'node/no-missing-require': [
2,
{
tryExtensions: ['.tsx', '.jsx', '.js', '.json', '.node'],
},
],
},
}

Expand Down Expand Up @@ -259,6 +273,12 @@ exports.vue = {
tryExtensions: ['.vue', '.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
},
],
'node/no-missing-require': [
2,
{
tryExtensions: ['.vue', '.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
},
],
'node/no-unsupported-features/es-syntax': 0,
},
}
Expand Down

0 comments on commit 5d1c36c

Please sign in to comment.