123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {
- "parser": "babel-eslint",
- "extends": ["standard", "standard-jsx"],
- "env": {
- "browser": true,
- "node": true,
- "jest": true
- },
- "globals": {
- "window": true,
- "hexo": true
- },
- "plugins": ["jest", "compat", "jsdoc"],
- "rules": {
- "jsx-quotes": ["error", "prefer-double"],
- "compat/compat": ["error"],
- // "no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
- "jsdoc/check-alignment": ["warn"],
- "jsdoc/check-examples": ["warn"],
- "jsdoc/check-indentation": ["warn"],
- "jsdoc/check-param-names": ["warn"],
- "jsdoc/check-syntax": ["warn"],
- "jsdoc/check-tag-names": ["warn"],
- "jsdoc/check-types": ["warn"],
- "jsdoc/newline-after-description": ["warn"],
- "jsdoc/valid-types": ["warn"]
- },
- "settings": {
- "react": {
- "pragma": "h"
- },
- "polyfills": [
- "Promise",
- "fetch",
- "Object.assign"
- ]
- },
- "overrides": [{
- "files": [
- "*.test.js",
- "test/endtoend/*.js",
- "website/*.js",
- "bin/*.js"
- ],
- "rules": {
- "compat/compat": "off"
- }
- },{
- "files": [
- "packages/@uppy/locales/src/*.js",
- "packages/@uppy/locales/template.js"
- ],
- "rules": {
- "camelcase": "off",
- "quote-props": "off"
- }
- }]
- }
|