diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b348612 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +os: + - linux + - osx + +language: node_js + +node_js: + - "node" + - "lts/*" + - "7" + +cache: + directories: + - "node_modules" \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..48be467 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,24 @@ +# Test against the latest version of this Node.js version +environment: + matrix: + - nodejs_version: "6" + - nodejs_version: "8" + - nodejs_version: "10" + +# Install scripts. (runs after repo cloning) +install: + # Get the latest stable version of Node.js or io.js + - ps: Install-Product node $env:nodejs_version + # install modules + - npm install + +# Post-install test scripts. +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm test + +# Don't actually build. +build: off \ No newline at end of file diff --git a/lib/rules/no-classname-with-stylename.js b/lib/rules/no-classname-with-stylename.js index df9c692..16e3fc9 100644 --- a/lib/rules/no-classname-with-stylename.js +++ b/lib/rules/no-classname-with-stylename.js @@ -14,8 +14,7 @@ module.exports = { meta: { docs: { description: "Disallow string className alongwith styleName in the same JSX tag", - category: "Fill me in", - recommended: false + recommended: true }, fixable: null, // or "code" or "whitespace" schema: [ diff --git a/package.json b/package.json index f9dd399..f7bf236 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,25 @@ { "name": "eslint-plugin-no-classname-with-stylename", - "version": "0.0.0", + "version": "0.0.1", "description": "While using CSS Modules, disallow using (non-conditional / string) classNames in a JSX tag if it already has a styleName", "keywords": [ "eslint", "eslintplugin", "eslint-plugin" ], - "author": "Abhas Bhattacharya", + + "author": "Abhas Bhattacharya ", + "homepage": "https://github.com/bendtherules/eslint-plugin-no-classname-with-stylename", + "repository": { + "type": "git", + "url": "git://github.com/bendtherules/eslint-plugin-no-classname-with-stylename.git" + }, + "main": "lib/index.js", "scripts": { "test": "mocha tests --recursive" }, + "dependencies": { "requireindex": "~1.1.0" }, @@ -19,6 +27,7 @@ "eslint": "~3.9.1", "mocha": "^3.1.2" }, + "engines": { "node": ">=0.10.0" },