-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. eslint-plugin-import 2. ideally, eslint-plugin-escompat when eslint 9 version ready 3. ideally, eslint-plugin-unsanitized (waiting on typescript-eslint)) 4. ideally, @fintechstudios/eslint-plugin-chai-as-promised 5. ideally, eslint-plugin-mocha-cleanup feat: switch to flat config BREAKING CHANGE: Requires Node 18.20.3+ Also: - chore: update globals, semver - chore: some TS work - feat: detects sourceType automatically for .js files too, based on `package.json` - fix: drop no-unpublished-import checks from rc configs - fix: add eslint.config.js to ESM configs
- Loading branch information
Showing
126 changed files
with
5,106 additions
and
3,000 deletions.
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
'use strict'; | ||
/* eslint-disable jsdoc/imports-as-dependencies -- Bug */ | ||
import node from 'eslint-plugin-n'; | ||
import globals from 'globals'; | ||
|
||
// As adding after defaults, recalculate ecmaVersion (Node plugins sets own | ||
// `ecmaVersion`) | ||
const {env, ecmaVersion} = require('./detectEnv.js'); | ||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default [ | ||
node.configs['flat/recommended-script'], | ||
{ | ||
languageOptions: { | ||
globals: globals.node, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
globalReturn: true | ||
} | ||
} | ||
}, | ||
rules: { | ||
// Allow for Node or Unicorn | ||
'no-process-exit': 'off', | ||
|
||
module.exports = { | ||
env, | ||
extends: ['plugin:n/recommended-script'], | ||
parserOptions: { | ||
ecmaVersion, | ||
ecmaFeatures: { | ||
globalReturn: true | ||
'import/no-commonjs': 'off', | ||
strict: ['error'] | ||
} | ||
}, | ||
rules: { | ||
// Allow for Node or Unicorn | ||
'no-process-exit': 'off', | ||
|
||
'import/no-commonjs': 'off', | ||
strict: ['error'] | ||
} | ||
}; | ||
]; |
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
parserOptions: { | ||
/* eslint-disable jsdoc/imports-as-dependencies -- Bug */ | ||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default [{ | ||
languageOptions: { | ||
sourceType: 'script', | ||
ecmaFeatures: { | ||
globalReturn: false | ||
parserOptions: { | ||
ecmaFeatures: { | ||
globalReturn: false | ||
} | ||
} | ||
}, | ||
rules: { | ||
'import/no-commonjs': 'off', | ||
strict: ['error'] | ||
} | ||
}; | ||
}]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
reject: [ | ||
// todo[engine:node@>=20] | ||
'rimraf' | ||
] | ||
}; |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
pnpm-lock.yaml | ||
eslint.config.js | ||
inherited-rules/build.js | ||
typings |
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,11 @@ | ||
/* eslint-disable jsdoc/imports-as-dependencies -- Bug */ | ||
import eslintCompat from 'eslint-plugin-compat'; | ||
// import esCompat from 'eslint-plugin-escompat'; // Todo: Waiting on https://github.com/keithamus/eslint-plugin-escompat/pull/24 | ||
// import noUnsanitized from 'eslint-plugin-no-unsanitized'; // Todo: Disable until https://github.com/mozilla/eslint-plugin-no-unsanitized/pull/239#issuecomment-2132867450 | ||
|
||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default [ | ||
eslintCompat.configs['flat/recommended'] | ||
// esCompat.configs['flat/recommended] | ||
// noUnsanitized.DOM, | ||
]; |
Oops, something went wrong.