Skip to content

Commit 76db255

Browse files
author
Hew
authored
Add wp-prettier and eslint (#192)
* Add wp-prettier * Add eslint * Latest wp-prettier * version bump
1 parent 0b16fe3 commit 76db255

File tree

4 files changed

+2862
-30
lines changed

4 files changed

+2862
-30
lines changed

.eslintrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
3+
"env": {
4+
"browser": true
5+
},
6+
"globals": {
7+
"enquire": true,
8+
"jQuery": true,
9+
"MicroModal": true,
10+
"Modernizr": true
11+
},
12+
"ignorePatterns": [ "vendor/" ]
13+
}

.prettierrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"useTabs": true,
3+
"tabWidth": 4,
4+
"printWidth": 80,
5+
"singleQuote": true,
6+
"trailingComma": "es5",
7+
"bracketSpacing": true,
8+
"parenSpacing": true,
9+
"jsxBracketSameLine": false,
10+
"semi": true,
11+
"arrowParens": "always"
12+
}

0 commit comments

Comments
 (0)