Skip to content

Commit

Permalink
Merge pull request #93 from happyprime/fix/use-happyprime-eslint
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 c74de6d + a845f90 commit d101ac1
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 159 deletions.
26 changes: 1 addition & 25 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,25 +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/'] }],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
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 d101ac1

Please sign in to comment.