12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- {
- "parser": "@babel/eslint-parser",
- "extends": ["standard", "standard-jsx"],
- "env": {
- "browser": true,
- "node": true,
- "jest": true
- },
- "globals": {
- "window": true,
- "hexo": true
- },
- "plugins": ["jest", "compat", "jsdoc", "@babel/eslint-plugin"],
- "rules": {
- "jsx-quotes": ["error", "prefer-double"],
- "compat/compat": ["error"],
- "react/jsx-handler-names": ["warn"], // maybe we want to do this in the future?
- "react/react-in-jsx-scope": ["error"],
- "jsdoc/check-alignment": ["warn"],
- "jsdoc/check-examples": ["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"],
- "jsdoc/check-indentation": ["off"]
- },
- "settings": {
- "react": {
- "pragma": "h"
- },
- "polyfills": [
- "Promise",
- "fetch",
- "Object.assign",
- "document.querySelector"
- ]
- },
- "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"
- }
- }]
- }
|