-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit bfb2c08.
- Loading branch information
Showing
2 changed files
with
92 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,102 @@ | ||
import prettier from 'eslint-plugin-prettier' | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin' | ||
import tsParser from '@typescript-eslint/parser' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import js from '@eslint/js' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
import prettier from "eslint-plugin-prettier"; | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}) | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [ | ||
...compat.extends( | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'plugin:@typescript-eslint/stylistic-type-checked', | ||
'plugin:prettier/recommended', | ||
'plugin:unicorn/recommended', | ||
), | ||
{ | ||
plugins: { | ||
prettier, | ||
'@typescript-eslint': typescriptEslint, | ||
}, | ||
export default [...compat.extends( | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:prettier/recommended", | ||
"plugin:unicorn/recommended", | ||
), { | ||
plugins: { | ||
prettier, | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: 'script', | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: "script", | ||
|
||
parserOptions: { | ||
tsconfigRootDir: '/Users/colin/src/bam-js', | ||
project: './tsconfig.lint.json', | ||
}, | ||
parserOptions: { | ||
tsconfigRootDir: "/Users/colin/src/bam-js", | ||
project: "./tsconfig.lint.json", | ||
}, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": ["warn", { | ||
argsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}], | ||
|
||
'no-underscore-dangle': 0, | ||
curly: 'error', | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
semi: ['error', 'never'], | ||
'unicorn/no-new-array': 'off', | ||
'unicorn/no-empty-file': 'off', | ||
'unicorn/prefer-type-error': 'off', | ||
'unicorn/prefer-modern-math-apis': 'off', | ||
'unicorn/prefer-node-protocol': 'off', | ||
'unicorn/no-unreadable-array-destructuring': 'off', | ||
'unicorn/no-abusive-eslint-disable': 'off', | ||
'unicorn/no-array-callback-reference': 'off', | ||
'unicorn/number-literal-case': 'off', | ||
'unicorn/prefer-add-event-listener': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
'unicorn/consistent-function-scoping': 'off', | ||
'unicorn/no-await-expression-member': 'off', | ||
'unicorn/no-lonely-if': 'off', | ||
'unicorn/consistent-destructuring': 'off', | ||
'unicorn/prefer-module': 'off', | ||
'unicorn/prefer-optional-catch-binding': 'off', | ||
'unicorn/no-useless-undefined': 'off', | ||
'unicorn/no-null': 'off', | ||
'unicorn/no-nested-ternary': 'off', | ||
'unicorn/filename-case': 'off', | ||
'unicorn/catch-error-name': 'off', | ||
'unicorn/prevent-abbreviations': 'off', | ||
'unicorn/prefer-code-point': 'off', | ||
'unicorn/numeric-separators-style': 'off', | ||
'unicorn/no-array-for-each': 'off', | ||
'unicorn/prefer-spread': 'off', | ||
'unicorn/explicit-length-check': 'off', | ||
'unicorn/prefer-regexp-test': 'off', | ||
'unicorn/relative-url-style': 'off', | ||
'unicorn/prefer-math-trunc': 'off', | ||
'unicorn/prefer-query-selector': 'off', | ||
'unicorn/no-negated-condition': 'off', | ||
'unicorn/switch-case-braces': 'off', | ||
'unicorn/prefer-switch': 'off', | ||
'unicorn/better-regex': 'off', | ||
'unicorn/no-for-loop': 'off', | ||
'unicorn/escape-case': 'off', | ||
'unicorn/prefer-number-properties': 'off', | ||
'unicorn/no-process-exit': 'off', | ||
'unicorn/prefer-at': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/no-unsafe-argument': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/no-unsafe-return': 'off', | ||
'@typescript-eslint/prefer-nullish-coalescing': 'off', | ||
'@typescript-eslint/require-await': 'off', | ||
}, | ||
"no-underscore-dangle": 0, | ||
curly: "error", | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/ban-ts-comment": 0, | ||
semi: ["error", "never"], | ||
"unicorn/no-new-array": "off", | ||
"unicorn/no-empty-file": "off", | ||
"unicorn/prefer-type-error": "off", | ||
"unicorn/prefer-modern-math-apis": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"unicorn/no-unreadable-array-destructuring": "off", | ||
"unicorn/no-abusive-eslint-disable": "off", | ||
"unicorn/no-array-callback-reference": "off", | ||
"unicorn/number-literal-case": "off", | ||
"unicorn/prefer-add-event-listener": "off", | ||
"unicorn/prefer-top-level-await": "off", | ||
"unicorn/consistent-function-scoping": "off", | ||
"unicorn/no-await-expression-member": "off", | ||
"unicorn/no-lonely-if": "off", | ||
"unicorn/consistent-destructuring": "off", | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-optional-catch-binding": "off", | ||
"unicorn/no-useless-undefined": "off", | ||
"unicorn/no-null": "off", | ||
"unicorn/no-nested-ternary": "off", | ||
"unicorn/filename-case": "off", | ||
"unicorn/catch-error-name": "off", | ||
"unicorn/prevent-abbreviations": "off", | ||
"unicorn/prefer-code-point": "off", | ||
"unicorn/numeric-separators-style": "off", | ||
"unicorn/no-array-for-each": "off", | ||
"unicorn/prefer-spread": "off", | ||
"unicorn/explicit-length-check": "off", | ||
"unicorn/prefer-regexp-test": "off", | ||
"unicorn/relative-url-style": "off", | ||
"unicorn/prefer-math-trunc": "off", | ||
"unicorn/prefer-query-selector": "off", | ||
"unicorn/no-negated-condition": "off", | ||
"unicorn/switch-case-braces": "off", | ||
"unicorn/prefer-switch": "off", | ||
"unicorn/better-regex": "off", | ||
"unicorn/no-for-loop": "off", | ||
"unicorn/escape-case": "off", | ||
"unicorn/prefer-number-properties": "off", | ||
"unicorn/no-process-exit": "off", | ||
"unicorn/prefer-at": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/prefer-nullish-coalescing": "off", | ||
"@typescript-eslint/require-await": "off", | ||
}, | ||
] | ||
}]; |
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