Skip to content

Commit

Permalink
Merge pull request #11 from green-code-initiative/9-add-ecocode-eslin…
Browse files Browse the repository at this point in the history
…t-plugin-to-the-project

#9 add ecocode eslint plugin to the project
  • Loading branch information
AMorgaut authored Jun 12, 2024
2 parents 2cb4ced + 767765a commit fbca60c
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@ecocode/recommended',
'plugin:vue/vue3-essential',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:storybook/recommended'
],
overrides: [
{
files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
extends: ['plugin:playwright/recommended']
}
],
parserOptions: {
ecmaVersion: 'latest'
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
!.gitignore
!.gitattributes
!.github/
!.eslintrc.cjs
!.nvmrc
!.prettierrc.json

# Ignore generated files
target
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"vue": "^3.4.21"
},
"devDependencies": {
"@ecocode/eslint-plugin": "^1.5.0",
"@playwright/test": "^1.43.0",
"@rushstack/eslint-patch": "^1.8.0",
"@vitejs/plugin-vue": "^5.0.4",
Expand Down

0 comments on commit fbca60c

Please sign in to comment.