-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from JetBrains-Research/v2.4.0-dev
- Loading branch information
Showing
12 changed files
with
2,380 additions
and
6,500 deletions.
There are no files selected for viewing
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
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,64 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import prettier from "eslint-plugin-prettier"; | ||
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 | ||
}); | ||
|
||
export default [{ | ||
ignores: ["**/out", "**/dist", "**/*.d.ts"], | ||
}, ...compat.extends("prettier"), { | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
prettier, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 6, | ||
sourceType: "module", | ||
}, | ||
|
||
files: ["**/*.ts"], | ||
|
||
rules: { | ||
"@typescript-eslint/naming-convention": ["warn", { | ||
selector: "default", | ||
format: ["camelCase", "PascalCase"], | ||
}, { | ||
selector: "variable", | ||
format: ["camelCase", "UPPER_CASE"], | ||
leadingUnderscore: "allow", | ||
}, { | ||
selector: "property", | ||
format: ["camelCase", "UPPER_CASE"], | ||
leadingUnderscore: "allow", | ||
}, { | ||
selector: "parameter", | ||
format: ["camelCase"], | ||
leadingUnderscore: "allow", | ||
}, { | ||
selector: "typeLike", | ||
format: ["PascalCase"], | ||
}, { | ||
selector: "enumMember", | ||
format: ["UPPER_CASE"], | ||
}], | ||
|
||
"@/semi": "warn", | ||
curly: "warn", | ||
eqeqeq: "warn", | ||
"no-throw-literal": "warn", | ||
semi: "off", | ||
"prettier/prettier": "warn", | ||
}, | ||
}]; |
Oops, something went wrong.