mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 21:38:12 +08:00
Add linting rules around ESLint directive comments (#1551)
* add eslint-plugin-eslint-comments and require descriptive configuration https://eslint.org/docs/user-guide/configuring#using-configuration-comments * update ESLint * audit ESLint disables * update ESLint and related dependencies
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: "babel-eslint",
|
||||
extends: ["airbnb", "plugin:prettier/recommended", "prettier/react"],
|
||||
extends: [
|
||||
"airbnb",
|
||||
"plugin:eslint-comments/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
"prettier/react",
|
||||
],
|
||||
env: { browser: true, commonjs: true, es6: true },
|
||||
globals: { expect: true },
|
||||
parserOptions: {
|
||||
@@ -13,6 +18,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"eslint-comments/require-description": ["error"],
|
||||
"no-magic-numbers": "off",
|
||||
"no-nested-ternary": "off",
|
||||
"func-style": "off",
|
||||
|
||||
Reference in New Issue
Block a user