Skip to content

Commit

Permalink
chore: update eslint config to handle dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 31, 2021
1 parent e601c92 commit 179617e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
**/CHANGELOG.md

!/src/types/*
!**/.*.*
15 changes: 13 additions & 2 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,19 @@ module.exports = {
'basedir',
'booleanish',
'cjs',
'commitlint',
'commonjs',
'cts',
'dotenv',
'esm',
'extensionless',
'fixme',
'formatter',
'keyof',
'loadenv',
'mjs',
'msg',
'mts',
'ncc',
'nullable',
'nullish',
Expand All @@ -137,6 +142,7 @@ module.exports = {
'typeof',
'usr',
'vercel',
'vscode',
'wasm',
'wip',
'workspace',
Expand Down Expand Up @@ -247,12 +253,17 @@ module.exports = {
parser: require.resolve('@typescript-eslint/parser')
},
{
files: ['.eslintrc.*'],
files: ['**/.eslintrc.*'],
rules: {
'sort-keys': 0,
'spellcheck/spell-checker': 0
}
},
{
files: ['**/.eslintrc.*', '**/.prettierrc.*'],
rules: {
'sort-keys': 0
}
},
{
files: ['tools/cli/loadenv.cjs'],
rules: {
Expand Down

0 comments on commit 179617e

Please sign in to comment.