Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

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 48a81cc commit c20259e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
__tests__/__fixtures__/trext.plugin.js

!/src/types/*
!**/.*.*
14 changes: 13 additions & 1 deletion .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,20 @@ module.exports = {
'argv',
'basedir',
'cjs',
'commitlint',
'commonjs',
'cts',
'ctx',
'dotenv',
'enum',
'esm',
'extensionless',
'formatter',
'keyof',
'loadenv',
'mjs',
'msg',
'mts',
'ncc',
'perf',
'pkgfile',
Expand All @@ -141,6 +147,7 @@ module.exports = {
'usr',
'utf',
'vercel',
'vscode',
'wasm',
'wip',
'yargs'
Expand Down Expand Up @@ -269,10 +276,15 @@ module.exports = {
{
files: ['**/.eslintrc.*'],
rules: {
'sort-keys': 0,
'spellcheck/spell-checker': 0
}
},
{
files: ['**/.eslintrc.*', '**/.prettierrc.*'],
rules: {
'sort-keys': 0
}
},
{
files: [
'**/__mocks__/**',
Expand Down

0 comments on commit c20259e

Please sign in to comment.