Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ yarn add -D eslint-config-instant eslint eslint-config-prettier eslint-plugin-js

For backend:
```bash
yarn add -D eslint eslint-config-prettier eslint-import-resolver-alias eslint-plugin-import eslint-plugin-prettier
yarn add -D eslint-config-instant eslint eslint-config-prettier eslint-import-resolver-alias eslint-plugin-import eslint-plugin-prettier
```

Finally add this to your package.json
Expand Down
9 changes: 3 additions & 6 deletions backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module.exports = {
rules: {
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/explicit-member-accessibility': [1],
'@typescript-eslint/interface-name-prefix': [0, 'never'],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-inferrable-types': 0,
Expand Down Expand Up @@ -79,7 +78,6 @@ module.exports = {
'spaced-comment': 'error',
// default case in a switch needs to be last
'default-case-last': 'error',

'import/order': [
'error',
{
Expand Down Expand Up @@ -108,17 +106,16 @@ module.exports = {
pathGroupsExcludedImportTypes: [],
},
],

'prettier/prettier': [
'error',
{
printWidth: 120,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: true,
printWidth: 120,
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'none',
},
],
},
Expand Down
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ module.exports = {
},
},
rules: {
// come up with some nice rules here

'import/order': [
'error',
{
Expand Down Expand Up @@ -45,12 +43,12 @@ module.exports = {
'prettier/prettier': [
'error',
{
printWidth: 100,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: true,
printWidth: 100,
singleQuote: true,
trailingComma: 'all',
},
],
},
Expand Down
53 changes: 23 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,36 @@
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint --fix",
"commit": "./node_modules/cz-customizable/standalone.js",
"semantic-release": "semantic-release"
},
"peerDependencies": {
"eslint": "8.17.0",
"eslint-config-prettier": "8.5.0",
"eslint": "8.34.0",
"eslint-config-prettier": "8.6.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.0.0",
"prettier": "2.6.2",
"typescript": "4.7.3"
"eslint-plugin-import": "2.27.5",
"eslint-plugin-prettier": "4.2.1",
"prettier": "2.8.4",
"typescript": "4.9.5"
},
"devDependencies": {
"@commitlint/cli": "17.0.2",
"@commitlint/config-conventional": "17.0.2",
"@semantic-release/changelog": "6.0.1",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"cz-customizable": "git+https://github.com/storyofams/tools-cz-customizable.git#v6.3.2",
"eslint": "8.17.0",
"eslint-config-prettier": "8.5.0",
"@commitlint/cli": "17.4.3",
"@commitlint/config-conventional": "17.4.3",
"@semantic-release/changelog": "6.0.2",
"@typescript-eslint/eslint-plugin": "5.51.0",
"@typescript-eslint/parser": "5.51.0",
"eslint": "8.34.0",
"eslint-config-prettier": "8.6.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "26.5.3",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-mdx": "1.17.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-react-hooks": "4.5.0",
"prettier": "2.6.2",
"semantic-release": "19.0.3",
"typescript": "4.7.3"
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-mdx": "2.0.5",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"prettier": "2.8.4",
"semantic-release": "20.1.0",
"typescript": "4.9.5"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -51,10 +49,5 @@
"extends": [
"./index.js"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
}
}
}
6 changes: 3 additions & 3 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ module.exports = {
'prettier/prettier': [
'error',
{
printWidth: 80,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 80,
useTabs: true,
singleQuote: true,
trailingComma: 'all',
},
],
},
Expand Down
Loading