Skip to content

Commit

Permalink
Style(repo): Add missing configurations and dependencies for running
Browse files Browse the repository at this point in the history
code checks
  • Loading branch information
literat committed Sep 2, 2022
1 parent d6bcf06 commit a36333a
Show file tree
Hide file tree
Showing 6 changed files with 1,319 additions and 60 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { prettierConfig } = require('./.prettierrc');

module.exports = {
root: true,

parserOptions: {
ecmaVersion: 'latest',
},

env: {
browser: true,
node: true,
},

ignorePatterns: ['node_modules', '!.*.js', 'packages/web-react', 'packages/web'],

extends: [
'@lmc-eu/eslint-config-react/base',
'@lmc-eu/eslint-config-react/optional',
'prettier',
'plugin:prettier/recommended',
],

plugins: ['prettier'],

rules: {
'prettier/prettier': [
'error',
{
...prettierConfig,
},
],
},
};
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
// eslint-disable-next-line global-require
...require('@lmc-eu/prettier-config'),
};
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,26 @@
"version": "yarn format:fix:changelog"
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/preset-react": "^7.18.6",
"@commitlint/cli": "17.0.3",
"@lmc-eu/commitlint-config": "1.0.12",
"@lmc-eu/conventional-changelog-lmc-github": "2.0.5",
"@lmc-eu/eslint-config-react": "1.0.2",
"@lmc-eu/prettier-config": "1.2.3",
"@lmc-eu/prettier-config": "^1.2.3",
"eslint": "8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "8.0.1",
"is-ci": "3.0.1",
"lerna": "5.4.3",
"npm-run-all": "4.1.5",
"nx": "14.5.10",
"postcss": "^8.4.16",
"prettier": "2.7.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"format:check": "prettier --check ./",
"format:fix": "prettier --write ./",
"prepare": "husky install",
"lint": "stylelint --config .stylelintrc.js ./src/**/*.scss",
"lint": "stylelint --config ../../.stylelintrc.js ./src/**/*.scss",
"test": "yarn lint"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
## Install


```shell
yarn add @lmc-eu/jobs-icons
```
Expand Down
Loading

0 comments on commit a36333a

Please sign in to comment.