cosmos-explorer/.eslintrc.js

45 lines
933 B
JavaScript
Raw Normal View History

module.exports = {
env: {
browser: true,
2020-07-02 05:33:09 +01:00
es6: true,
},
2020-06-23 16:45:51 +01:00
plugins: ["@typescript-eslint", "no-null"],
2020-06-16 15:21:44 +01:00
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
globals: {
Atomics: "readonly",
2020-07-02 05:33:09 +01:00
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
2020-07-02 05:33:09 +01:00
jsx: true,
},
ecmaVersion: 2018,
2020-07-02 05:33:09 +01:00
sourceType: "module",
},
overrides: [
{
files: ["**/*.tsx"],
env: {
2020-07-02 05:33:09 +01:00
jest: true,
},
extends: ["plugin:react/recommended"],
2020-07-02 05:33:09 +01:00
plugins: ["react"],
},
{
files: ["**/*.test.{ts,tsx}"],
env: {
2020-07-02 05:33:09 +01:00
jest: true,
},
extends: ["plugin:jest/recommended"],
2020-07-02 05:33:09 +01:00
plugins: ["jest"],
},
],
rules: {
2020-06-16 15:21:44 +01:00
curly: "error",
2020-06-23 16:45:51 +01:00
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-extraneous-class": "error",
2020-07-02 05:33:09 +01:00
"no-null/no-null": "error",
},
};