Add meta data and CI configs

This commit is contained in:
Abhas
2018-09-21 14:39:41 +05:30
parent 51af1997aa
commit b68ba9e1a0
4 changed files with 50 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
os:
- linux
- osx
language: node_js
node_js:
- "node"
- "lts/*"
- "7"
cache:
directories:
- "node_modules"
+24
View File
@@ -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
+1 -2
View File
@@ -14,8 +14,7 @@ module.exports = {
meta: { meta: {
docs: { docs: {
description: "Disallow string className alongwith styleName in the same JSX tag", description: "Disallow string className alongwith styleName in the same JSX tag",
category: "Fill me in", recommended: true
recommended: false
}, },
fixable: null, // or "code" or "whitespace" fixable: null, // or "code" or "whitespace"
schema: [ schema: [
+11 -2
View File
@@ -1,17 +1,25 @@
{ {
"name": "eslint-plugin-no-classname-with-stylename", "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", "description": "While using CSS Modules, disallow using (non-conditional / string) classNames in a JSX tag if it already has a styleName",
"keywords": [ "keywords": [
"eslint", "eslint",
"eslintplugin", "eslintplugin",
"eslint-plugin" "eslint-plugin"
], ],
"author": "Abhas Bhattacharya",
"author": "Abhas Bhattacharya <abhasbhattacharya2@gmail.com>",
"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", "main": "lib/index.js",
"scripts": { "scripts": {
"test": "mocha tests --recursive" "test": "mocha tests --recursive"
}, },
"dependencies": { "dependencies": {
"requireindex": "~1.1.0" "requireindex": "~1.1.0"
}, },
@@ -19,6 +27,7 @@
"eslint": "~3.9.1", "eslint": "~3.9.1",
"mocha": "^3.1.2" "mocha": "^3.1.2"
}, },
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
}, },