Skip to content

Commit

Permalink
Merge pull request #32 from happyprime/fix/use-js-coding-standards
Browse files Browse the repository at this point in the history
Use @happyprime/eslint-config
  • Loading branch information
jeremyfelt authored Jul 25, 2024
2 parents 23ba499 + 950b728 commit 4fcae43
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 254 deletions.
24 changes: 1 addition & 23 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
module.exports = {
extends: [
'plugin:import/recommended',
'plugin:jsdoc/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
env: {
browser: true,
},
ignorePatterns: ['build/**/*.js', 'vendor/**/*.js'],
rules: {
'no-console': ['warn', { allow: ['error'] }],
'import/no-unresolved': [2, { ignore: ['^@wordpress/'] }],
},
settings: {
react: {
version: '18',
},
},
};
module.exports = require('@happyprime/eslint-config');
23 changes: 1 addition & 22 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
const config = {
useTabs: true,
tabWidth: 4,
printWidth: 80,
singleQuote: true,
trailingComma: 'es5',
bracketSameLine: false,
bracketSpacing: true,
semi: true,
arrowParens: 'always',
parenSpacing: true,
overrides: [
{
files: '*.{css,sass,scss}',
options: {
singleQuote: false,
},
},
],
};

module.exports = config;
module.exports = require('@happyprime/eslint-config/prettier');
Loading

0 comments on commit 4fcae43

Please sign in to comment.