bemlinter.js
Advanced tools
Comparing version 0.7.1 to 1.0.0
{ | ||
"name": "bemlinter.js", | ||
"version": "0.7.1", | ||
"description": "BEM linter", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"bin": { | ||
"bemlinter": "./src/cli.js" | ||
}, | ||
"scripts": { | ||
"test": "jest" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/tzi/bemlinter.js.git" | ||
"url": "git+https://github.com/npm/deprecate-holder.git" | ||
}, | ||
"keywords": [ | ||
"bem", | ||
"lint", | ||
"linter" | ||
], | ||
"author": "Thomas ZILLIOX <http://tzi.fr>", | ||
"license": "MIT", | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/tzi/bemlinter.js/issues" | ||
"url": "https://github.com/npm/deprecate-holder/issues" | ||
}, | ||
"homepage": "https://github.com/tzi/bemlinter.js#readme", | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"globby": "^6.1.0", | ||
"lodash": "^4.17.3", | ||
"minimist": "^1.2.0", | ||
"mz": "^2.6.0", | ||
"param-case": "^2.1.0", | ||
"query-ast": "^1.0.0", | ||
"scss-parser": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"devDependencies": { | ||
"jest": "^18.1.0" | ||
} | ||
"homepage": "https://github.com/npm/deprecate-holder#readme" | ||
} |
129
README.md
@@ -1,128 +0,7 @@ | ||
bemlinter.js [](https://travis-ci.org/tzi/bemlinter.js) | ||
====== | ||
# Deprecated Package | ||
A cli tool to lint bem component isolation in SCSS files | ||
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name. | ||
The main rules are: | ||
Please use the [bemlinter](https://www.npmjs.com/package/bemlinter) package instead. | ||
1. A SCSS component should only contain its own classes | ||
2. A SCSS file, even if it is not a component, should not style a class of another component | ||
Quick start | ||
------ | ||
```sh | ||
npm i bemlinter.js --save | ||
``` | ||
You can set your `package.json` to use bemlinter: | ||
```json | ||
{ | ||
"scripts": { | ||
"lint": "bemlinter the/path/to/your/*.scss" | ||
} | ||
} | ||
``` | ||
Configuration file | ||
------ | ||
If you need more configuration you can use a configuration file: | ||
```json | ||
{ | ||
"scripts": { | ||
"lint": "bemlinter --config .bemlinter" | ||
} | ||
} | ||
``` | ||
The configuration file is a json file: | ||
### sources | ||
To define the paths of your source files | ||
```json | ||
{ | ||
"sources": [ | ||
"a/path/to/your/scss/*.scss", | ||
"a/path/to/a/specific/scss/main.scss | ||
] | ||
} | ||
``` | ||
### excludePath (option) | ||
To define the paths of some exclude source files | ||
default: `[]` | ||
```json | ||
{ | ||
"excludePath": [ | ||
"an/exclude/path/of/scss/*.scss" | ||
] | ||
} | ||
``` | ||
### excludeComponent (option) | ||
To define the names of some component that are not isolated yet, so the linter will be kind ;) | ||
default: `[]` | ||
```json | ||
{ | ||
"excludeComponent": [ | ||
"messed-up-component", | ||
"disorder-file", | ||
"old-component" | ||
] | ||
} | ||
``` | ||
### checkLowerCase (option) | ||
To disable lower case check | ||
default: `true` | ||
```json | ||
{ | ||
"checkLowerCase": false | ||
} | ||
``` | ||
### prefix (option) | ||
To set the authorized prefix | ||
default: `['']` | ||
```json | ||
{ | ||
"prefix": ["c-"] | ||
} | ||
``` | ||
How to Contribute | ||
-------- | ||
1. [Star](https://github.com/tzi/bemlinter.js/stargazers) the project! | ||
2. [Report a bug](https://github.com/tzi/bemlinter.js/issues/new) that you have found. | ||
3. Tweet or blog about sass-test.sh and [Let me know](https://twitter.com/iamtzi) about it. | ||
4. Pull requests are also highly appreciated. | ||
Author & Community | ||
-------- | ||
bemlinter.js is under [MIT License](http://tzi.mit-license.org/).<br> | ||
It was created & is maintained by [Thomas ZILLIOX](http://tzi.fr). | ||
Please contact support@npmjs.com if you have questions about this package. |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
761
2
0
2
8
3
- Removedcolors@^1.1.2
- Removedglobby@^6.1.0
- Removedlodash@^4.17.3
- Removedminimist@^1.2.0
- Removedmz@^2.6.0
- Removedparam-case@^2.1.0
- Removedquery-ast@^1.0.0
- Removedscss-parser@^1.0.0
- Removedany-promise@1.3.0(transitive)
- Removedarray-union@1.0.2(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcolors@1.4.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobby@6.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedlower-case@1.1.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmz@2.7.0(transitive)
- Removedno-case@2.3.2(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedparam-case@2.1.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedquery-ast@1.0.5(transitive)
- Removedscss-parser@1.0.6(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removedwrappy@1.0.2(transitive)