build: add JS and CSS linters

This commit is contained in:
Ben Goldsworthy 2021-04-15 03:06:08 +01:00
parent b14a2d80bb
commit a661d36752
8 changed files with 6792 additions and 0 deletions

12
.eslintrc.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = {
env: {
browser: true,
jquery: true,
es6: true
},
extends: [
'wordpress',
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
rules: {},
};