* Add @babel/eslint-plugin-internal * Add dry-error-messages rule * Address feedback * Enable new rule * fix author field * Fix errors * Add readme * Add example configuration * Handle directories * run make bootstrap * More updates! * Fix errors * Update tests * Fix CI race condition
34 lines
719 B
JavaScript
34 lines
719 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
parser: "@babel/eslint-parser",
|
|
extends: "eslint:recommended",
|
|
plugins: ["flowtype"],
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
},
|
|
globals: {
|
|
// Flow
|
|
Iterator: true,
|
|
$Keys: true,
|
|
},
|
|
env: {
|
|
node: true,
|
|
es2020: true,
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
curly: ["error", "multi-line"],
|
|
"linebreak-style": ["error", "unix"],
|
|
"no-case-declarations": "error",
|
|
"no-confusing-arrow": "error",
|
|
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
"no-process-exit": "error",
|
|
"no-var": "error",
|
|
"prefer-const": "error",
|
|
"flowtype/define-flow-type": "warn",
|
|
"flowtype/use-flow-type": "warn",
|
|
},
|
|
};
|