UNPKG

react-whole-barrels

Version:

- [x] Es6/7 - [x] react/react-router/dva - [x] less - [x] dev-server - [x] 模块热替换(HMR) - [x] sourcemap - [x] CSS代码分割 - [x] 代码分割(SplitChunksPlugin) - [x] 浏览器缓存 - [x] tree shaking - [x] DellPlugin - [x] PWA - [x] eslint - [x] stylelint

94 lines 2.26 kB
{ "env": { "browser": true, "es6": true }, "extends": "eslint:recommended", "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 2018, "sourceType": "module" }, "plugins": [ "react" ], "rules": { "prefer-destructuring": [ "error", { "object": true, "array": false }, { "enforceForRenamedProperties": false } ], "no-unused-vars": [ "error", { "vars": "all", "args": "none", "ignoreRestSiblings": true } ], "brace-style": [ "error", "stroustrup" ], "line-comment-position": [ "error", { "position": "above" } ], "object-curly-spacing": [ "error", "never" ], "max-len": [ "error", { "code": 120, "tabWidth": 2, "ignoreComments": true, "ignoreUrls": true, "ignoreRegExpLiterals": true, "ignoreStrings": true, "ignoreTemplateLiterals": true } ], "comma-dangle": [ "error", "never" ], "no-unused-expressions": [ "error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true } ], "react/jsx-filename-extension": [ "error", { "extensions": [ ".js", ".jsx" ] } ], "react/require-default-props": "off", "react/forbid-prop-types": "off", "jsx-a11y/click-events-have-key-events": "off", "jsx-a11y/no-static-element-interactions": "off", "no-unused-vars": "off" }, "parser": "babel-eslint" }