Files
slippi-js/.eslintrc.js
Nikhil Narayana 8c190fd23d refactor: migrate yarn -> npm and update ci to node 20 (#141)
* migrate yarn -> npm and update ci to node 20

* add eslint-plugin-flowtype to dev deps

* fix coverage, add jest and ts-jest explicitly to dev deps

still need to fix tests on CI
2025-05-13 18:48:16 -07:00

43 lines
1.6 KiB
JavaScript

module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier",
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
parserOptions: {
project: "tsconfig.json",
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
},
settings: {
"import/resolver": {
typescript: {},
},
},
plugins: ["import", "simple-import-sort"],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/consistent-type-imports": "warn",
"import/no-default-export": "error",
"import/no-named-as-default-member": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"no-undef": "off",
"new-cap": "error",
curly: "error",
},
ignorePatterns: ["/*.js", "test"],
};