Skip to content
Snippets Groups Projects
  • Robert Roland's avatar
    d86b85ce
    Update eslint (#12951) · d86b85ce
    Robert Roland authored
    
    * Update eslint
    
    Updates eslint, babel and plugins to the latest compatible versions
    
    Drops the 'no-color-literals' parameter which doesn't exist (looks like
    it's actually part of eslint-plugin-react-native which we don't use)
    
    adding a dirlocal to make sure js2-mode doesn't confuse you with type
    errors that aren't actually errors because of flowtype and such
    
    * update generated css classes in snapshots
    
    Co-authored-by: default avatarPaul Rosenzweig <paul.a.rosenzweig@gmail.com>
    Update eslint (#12951)
    Robert Roland authored
    
    * Update eslint
    
    Updates eslint, babel and plugins to the latest compatible versions
    
    Drops the 'no-color-literals' parameter which doesn't exist (looks like
    it's actually part of eslint-plugin-react-native which we don't use)
    
    adding a dirlocal to make sure js2-mode doesn't confuse you with type
    errors that aren't actually errors because of flowtype and such
    
    * update generated css classes in snapshots
    
    Co-authored-by: default avatarPaul Rosenzweig <paul.a.rosenzweig@gmail.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.eslintrc 1.08 KiB
{
  "rules": {
    "strict": [2, "never"],
    "no-undef": 2,
    "no-var": 1,
    "no-unused-vars": [1, { "vars": "all", "args": "none" }],
    "no-empty": [1, { "allowEmptyCatch": true }],
    "curly": [1, "all"],
    "eqeqeq": [1, "smart"],
    "import/no-commonjs": 1,
    "no-console": 0,
    "react/no-is-mounted": 2,
    "react/prefer-es6-class": 2,
    "react/display-name": 1,
    "react/prop-types": 0,
    "react/no-did-mount-set-state": 0,
    "react/no-did-update-set-state": 0,
    "react/no-find-dom-node": 0,
    "flowtype/define-flow-type": 1,
    "flowtype/use-flow-type": 1,
    "prefer-const": [1, { "destructuring": "all" }]
  },
  "globals": {
    "pending": false,
    "cy": true,
    "Cypress": true
  },
  "env": {
    "browser": true,
    "es6": true,
    "commonjs": true,
    "jest": true
  },
  "parser": "babel-eslint",
  "plugins": ["react", "flowtype"],
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:import/errors",
    "plugin:import/warnings"
  ],
  "settings": {
    "import/resolver": "webpack",
    "import/ignore": ["\\.css$"]
  }
}