Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
2.0.0 (switch to postcss 5.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Aug 25, 2015
1 parent 9774424 commit cd6e2bf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
13 changes: 9 additions & 4 deletions .eslintrc
Expand Up @@ -2,6 +2,9 @@
# babel support more syntax stuff than eslint for now
parser: babel-eslint

root: true
extends: eslint:recommended

ecmaFeatures:
modules: true

Expand All @@ -20,18 +23,20 @@ rules:
brace-style: [2, "stroustrup"]
comma-dangle: [2, "always-multiline"]
comma-style: [2, "last"]
computed-property-spacing: [2, "never"]
dot-location: [2, "property"]

one-var: [2, "never"]
no-var: [2]
prefer-const: [2]
no-bitwise: [2]

object-shorthand: [2, "methods"]
object-curly-spacing: [2, "never"]
array-bracket-spacing: [2, "never"]
computed-property-spacing: [2, "never"]

space-unary-ops: [2, {"words": true, "nonwords": false}]
space-after-keywords: [2, "always"]
space-before-blocks: [2, "always"]
space-before-function-paren: [2, "never"]
space-in-brackets: [2, "never"]
space-in-parens: [2, "never"]
spaced-line-comment: [2, "always"]
spaced-comment: [2, "always"]
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# 2.0.0 - 2015-08-25

- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x

# 1.2.1 - 2015-06-16

- Fixed: selector was updated as an array, which is wrong.
Expand Down
15 changes: 5 additions & 10 deletions package.json
@@ -1,9 +1,10 @@
{
"name": "postcss-selector-not",
"version": "1.2.1",
"version": "2.0.0",
"description": "PostCSS plugin to transform :not() W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors",
"keywords": [
"postcss",
"postcss-plugin",
"selectors",
"selector",
"Not"
Expand All @@ -14,25 +15,19 @@
"type": "git",
"url": "https://github.com/postcss/postcss-selector-not.git"
},
"homepage": "https://github.com/postcss/postcss-selector-not",
"bugs": {
"url": "https://github.com/postcss/postcss-selector-not/issues"
},
"main": "dist/index.js",
"files": [
"CHANGELOG.md",
"LICENSE",
"dist"
],
"main": "dist/index.js",
"dependencies": {
"balanced-match": "^0.2.0",
"postcss": "^4.1.7"
"postcss": "^5.0.0"
},
"devDependencies": {
"babel": "^5.1.13",
"babel-eslint": "^3.1.15",
"babel-tape-runner": "^1.1.0",
"eslint": "^0.23.0",
"eslint": "^1.0.0",
"tape": "^4.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -26,7 +26,7 @@ function explodeSelector(pseudoClass, selector) {
function explodeSelectors(pseudoClass) {
return () => {
return (css) => {
css.eachRule(rule => {
css.walkRules(rule => {
if (rule.selector && rule.selector.indexOf(pseudoClass) > -1) {
rule.selector = explodeSelector(pseudoClass, rule.selector)
}
Expand Down

0 comments on commit cd6e2bf

Please sign in to comment.