Skip to content

Commit

Permalink
Merge pull request #3 from ntwb/eslint-1
Browse files Browse the repository at this point in the history
Use eslint@1.0.0 and eslint-config-stylelint
  • Loading branch information
jeddy3 authored and ntwb committed May 31, 2020
1 parent 1a565d2 commit d2ee4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 54 deletions.
54 changes: 1 addition & 53 deletions packages/stylelint-config-wordpress/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,53 +1 @@
---
ecmaFeatures:
modules: true

env:
es6: true
browser: true
node: true

# 0: off, 1: warning, 2: error
rules:

# trailing coma are cool for diff
comma-dangle: [2, "always-multiline"]

# enforce comma at eol (never before)
comma-style: [2, "last"]

# turn off consistent return
consistent-return: 0

# 2 spaces indentation
indent: [2, 2]

# quotes are always double
quotes: [2, "double"]

# single empty lines only
no-multiple-empty-lines: [2, {"max": 1}]

# allow functions declarations at bottom of scope
no-use-before-define: [2, "nofunc"]

# semicolons are useless
semi: [2, "never"]

# consistent whitespace after keywords
space-after-keywords: [2, "always"]

# consistent whitespace before blocks
space-before-blocks: [2, "always"]

# consistent whitespace before function paren
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}]

# consistent whitespace in brackets
space-in-brackets: [2, "always", {"singleValue": false, "propertyName": false}]

# consistent whitespace in parens
space-in-parens: [2, "never"]

# consistent whitespace in single line comments
spaced-line-comment: [2, "always"]
extends: 'stylelint'
3 changes: 2 additions & 1 deletion packages/stylelint-config-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"devDependencies": {
"babel": "^5.8.19",
"babel-tape-runner": "^1.1.0",
"eslint": "^0.24.1",
"eslint": "^1.0.0",
"eslint-config-stylelint": "^0.1.0",
"postcss": "^4.1.16",
"stylelint": "^0.5.0",
"tape": "^4.0.1"
Expand Down

0 comments on commit d2ee4ad

Please sign in to comment.