New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bemlinter.js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemlinter.js - npm Package Compare versions

Comparing version 0.7.1 to 1.0.0

40

package.json
{
"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 [![Build Status](https://travis-ci.org/tzi/bemlinter.js.svg?branch=master)](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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc