chore: configure eslint and prettier

This commit is contained in:
Sam Tolmay 2020-10-06 17:21:14 +02:00
parent 5d646d40da
commit 35a2d91a9f
93 changed files with 1467 additions and 892 deletions

View File

@ -5,9 +5,28 @@
"jest": true,
"browser": true
},
"extends": ["airbnb", "prettier"],
"extends": ["prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"]
"prettier/prettier": "error",
"import/no-cycle": "warn",
"no-underscore-dangle": "off",
"no-param-reassign": "warn",
"no-nested-ternary": "warn",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-array-index-key": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-indent": "off",
"react/jsx-props-no-spreading": "warn",
"react/destructuring-assignment": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off"
},
"parserOptions": {
"sourceType": "module"
}
}

1236
.pnp.js generated

File diff suppressed because it is too large Load Diff

7
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js"
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

20
.yarn/sdks/eslint/bin/eslint.js vendored Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve, dirname} = require(`path`);
const relPnpApiPath = "../../../../.pnp.js";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/bin/eslint.js
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint/bin/eslint.js your application uses
module.exports = absRequire(`eslint/bin/eslint.js`);

20
.yarn/sdks/eslint/lib/api.js vendored Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve, dirname} = require(`path`);
const relPnpApiPath = "../../../../.pnp.js";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/lib/api.js
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint/lib/api.js your application uses
module.exports = absRequire(`eslint/lib/api.js`);

6
.yarn/sdks/eslint/package.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"name": "eslint",
"version": "6.8.0-pnpify",
"main": "./lib/api.js",
"type": "commonjs"
}

5
.yarn/sdks/integrations.yml vendored Normal file
View File

@ -0,0 +1,5 @@
# This file is automatically generated by PnPify.
# Manual changes will be lost!
integrations:
- vscode

20
.yarn/sdks/prettier/index.js vendored Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve, dirname} = require(`path`);
const relPnpApiPath = "../../../.pnp.js";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js
require(absPnpApiPath).setup();
}
}
// Defer to the real prettier/index.js your application uses
module.exports = absRequire(`prettier/index.js`);

6
.yarn/sdks/prettier/package.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"name": "prettier",
"version": "2.1.2-pnpify",
"main": "./index.js",
"type": "commonjs"
}

View File

@ -33,6 +33,15 @@
"test": "lerna run test"
},
"devDependencies": {
"lerna": "3.22.1"
"@yarnpkg/pnpify": "2.3.1",
"eslint": "6.8.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"lerna": "3.22.1",
"prettier": "2.1.2"
}
}

View File

@ -39,12 +39,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-prettier": "3.1.4",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -39,16 +39,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -41,16 +41,7 @@
"@babel/preset-react": "7.10.4",
"babel-loader": "8.1.0",
"bundle-loader": "0.5.6",
"eslint": "7.10.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"html-webpack-plugin": "4.5.0",
"prettier": "2.1.2",
"webpack": "5.0.0-rc.3",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0"

View File

@ -38,16 +38,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -38,15 +38,6 @@
"@babel/compat-data": "7.9.6",
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-loader": "8.1.0",
"eslint": "7.10.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"prettier": "2.1.2"
"babel-loader": "8.1.0"
}
}

View File

@ -42,16 +42,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -38,12 +38,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-prettier": "3.1.4",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -38,16 +38,7 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"jest": "24.9.0",
"jest-diff": "24.9.0",
"prettier": "2.1.2"
"jest-diff": "24.9.0"
}
}

View File

@ -35,15 +35,6 @@
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.2",
"eslint-plugin-react-hooks": "4.1.2",
"jest": "24.9.0",
"prettier": "2.1.2"
"jest": "24.9.0"
}
}

908
yarn.lock

File diff suppressed because it is too large Load Diff