Skip to content

Commit

Permalink
Revert "Run format"
Browse files Browse the repository at this point in the history
This reverts commit bfb2c08.
  • Loading branch information
cmdcolin committed Jun 13, 2024
1 parent bfb2c08 commit 2a02535
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 97 deletions.
187 changes: 91 additions & 96 deletions eslint.config.mjs
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",
},
]
}];
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["src"],
"compilerOptions": {
"outDir": "dist",
"target": "es2018",
"target":"es2018",
"types": ["node", "jest"],
"lib": ["dom", "esnext"],
"declaration": true,
Expand Down

0 comments on commit 2a02535

Please sign in to comment.