Skip to content

Commit

Permalink
Coding Standards: Use WordPress packages for coding standards (#62)
Browse files Browse the repository at this point in the history
First pass at improving the formating and linting. Before a big fix, I wanted to get this agreed on and likely also get a few other PRs merged.

Co-authored-by: aaronjorbin <jorbin@git.wordpress.org>
Co-authored-by: desrosj <desrosj@git.wordpress.org>
  • Loading branch information
3 people authored Feb 8, 2024
1 parent 3a82c84 commit a585694
Show file tree
Hide file tree
Showing 4 changed files with 32,433 additions and 8,237 deletions.
30 changes: 16 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"indent": ["error", "tab"]
}
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": "plugin:@wordpress/eslint-plugin/recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"indent": [ "error", "tab" ],
"one-var": [ "error", "never" ],
"prefer-arrow-callback": [ "error" ]
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
Loading

0 comments on commit a585694

Please sign in to comment.