mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +01:00
Integrate Prettier + ESLint + reForis Style Guide
This commit is contained in:
parent
a434ecac18
commit
e41da48b1a
|
@ -1,6 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: "eslint-config-reforis",
|
extends: ["eslint-config-reforis", "prettier"],
|
||||||
|
plugins: ["prettier"],
|
||||||
rules: {
|
rules: {
|
||||||
|
"prettier/prettier": ["error"],
|
||||||
"import/prefer-default-export": "off",
|
"import/prefer-default-export": "off",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
11
.prettierrc
Normal file
11
.prettierrc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"singleQuote": false,
|
||||||
|
"printWidth": 80,
|
||||||
|
"proseWrap": "always",
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": false,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"jsxBracketSameLine": false,
|
||||||
|
"semi": true
|
||||||
|
}
|
36924
package-lock.json
generated
36924
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
133
package.json
133
package.json
|
@ -1,67 +1,70 @@
|
||||||
{
|
{
|
||||||
"name": "foris",
|
"name": "foris",
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"description": "Set of components and utils for Foris and its plugins.",
|
"description": "Set of components and utils for Foris and its plugins.",
|
||||||
"author": "CZ.NIC, z.s.p.o.",
|
"author": "CZ.NIC, z.s.p.o.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitlab.labs.nic.cz/turris/reforis/foris-js.git"
|
"url": "https://gitlab.labs.nic.cz/turris/reforis/foris-js.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"foris",
|
"foris",
|
||||||
"reforis"
|
"reforis"
|
||||||
],
|
],
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.2",
|
"axios": "^0.19.2",
|
||||||
"immutability-helper": "3.0.1",
|
"immutability-helper": "3.0.1",
|
||||||
"moment": "^2.24.0",
|
"moment": "^2.24.0",
|
||||||
"qrcode.react": "^0.9.3",
|
"qrcode.react": "^0.9.3",
|
||||||
"react-datetime": "^2.16.3",
|
"react-datetime": "^2.16.3",
|
||||||
"react-uid": "^2.2.0"
|
"react-uid": "^2.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"bootstrap": "4.4.1",
|
"bootstrap": "4.4.1",
|
||||||
"prop-types": "15.7.2",
|
"prop-types": "15.7.2",
|
||||||
"react": "16.9.0",
|
"react": "16.9.0",
|
||||||
"react-dom": "16.9.0",
|
"react-dom": "16.9.0",
|
||||||
"react-router-dom": "^5.1.2"
|
"react-router-dom": "^5.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.8.4",
|
"@babel/cli": "^7.8.4",
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
"@babel/plugin-transform-runtime": "^7.9.0",
|
"@babel/plugin-transform-runtime": "^7.9.0",
|
||||||
"@babel/preset-env": "^7.9.0",
|
"@babel/preset-env": "^7.9.0",
|
||||||
"@babel/preset-react": "^7.9.4",
|
"@babel/preset-react": "^7.9.4",
|
||||||
"@fortawesome/fontawesome-free": "^5.13.0",
|
"@fortawesome/fontawesome-free": "^5.13.0",
|
||||||
"@testing-library/react": "^8.0.9",
|
"@testing-library/react": "^8.0.9",
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.1.0",
|
||||||
"babel-polyfill": "^6.26.0",
|
"babel-polyfill": "^6.26.0",
|
||||||
"bootstrap": "^4.5.0",
|
"bootstrap": "^4.5.0",
|
||||||
"css-loader": "^3.5.3",
|
"css-loader": "^3.5.3",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint-config-reforis": "^1.0.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"file-loader": "^6.0.0",
|
"eslint-config-reforis": "^1.0.0",
|
||||||
"jest": "^25.2.0",
|
"eslint-plugin-prettier": "^3.1.4",
|
||||||
"jest-mock-axios": "^3.2.0",
|
"file-loader": "^6.0.0",
|
||||||
"moment-timezone": "^0.5.28",
|
"jest": "^25.2.0",
|
||||||
"prop-types": "15.7.2",
|
"jest-mock-axios": "^3.2.0",
|
||||||
"react": "16.9.0",
|
"moment-timezone": "^0.5.28",
|
||||||
"react-dom": "16.9.0",
|
"prettier": "2.0.5",
|
||||||
"react-router-dom": "^5.1.2",
|
"prop-types": "15.7.2",
|
||||||
"react-styleguidist": "^10.6.2",
|
"react": "16.9.0",
|
||||||
"snapshot-diff": "^0.7.0",
|
"react-dom": "16.9.0",
|
||||||
"style-loader": "^1.2.1",
|
"react-router-dom": "^5.1.2",
|
||||||
"webpack": "^4.43.0"
|
"react-styleguidist": "^10.6.2",
|
||||||
},
|
"snapshot-diff": "^0.7.0",
|
||||||
"scripts": {
|
"style-loader": "^1.2.1",
|
||||||
"lint": "eslint src",
|
"webpack": "^4.43.0"
|
||||||
"lint:fix": "eslint --fix src",
|
},
|
||||||
"test": "jest",
|
"scripts": {
|
||||||
"test:watch": "jest --watch",
|
"lint": "eslint src",
|
||||||
"test:coverage": "jest --coverage --colors",
|
"lint:fix": "eslint --fix src",
|
||||||
"docs": "npx styleguidist build ",
|
"test": "jest",
|
||||||
"docs:watch": "styleguidist server"
|
"test:watch": "jest --watch",
|
||||||
}
|
"test:coverage": "jest --coverage --colors",
|
||||||
|
"docs": "npx styleguidist build ",
|
||||||
|
"docs:watch": "styleguidist server"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user