From 9fed8effcb74da2a13c0ff157ccdfa3a4a726311 Mon Sep 17 00:00:00 2001 From: ButuzGOL Date: Thu, 6 Apr 2017 11:55:29 +0300 Subject: [PATCH 1/2] Cleaning & small modification 1. dot configs to package.json 2. clean empty files 3. Add npm badge --- .babelrc | 9 --------- .eslintrc | 22 ---------------------- CHANGELOG.md | 0 LICENSE | 0 README.md | 4 +++- package.json | 31 +++++++++++++++++++++++++++++++ 6 files changed, 34 insertions(+), 32 deletions(-) delete mode 100644 .babelrc delete mode 100644 .eslintrc delete mode 100644 CHANGELOG.md delete mode 100644 LICENSE diff --git a/.babelrc b/.babelrc deleted file mode 100644 index c5fa842f1..000000000 --- a/.babelrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "presets": ["es2015", "stage-2", "react"], - "plugins": [ - "transform-object-rest-spread", - "transform-runtime", - "transform-class-properties" - ], - "sourceMaps": "inline" -} diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 6a77313a6..000000000 --- a/.eslintrc +++ /dev/null @@ -1,22 +0,0 @@ -{ - 'parser': 'babel-eslint', - 'extends': 'airbnb', - 'env': { - 'browser': true - }, - 'rules': { - 'jsx-quotes': [2, 'prefer-single'], - 'no-nested-ternary': 0, - 'react/jsx-curly-spacing': 0, - 'react/no-multi-comp': 0, - 'react/jsx-no-bind': 0, - 'react/jsx-filename-extension': [1, { 'extensions': ['.js', '.jsx'] }], - 'jsx-a11y/no-static-element-interactions': 0, - 'class-methods-use-this': 0, - 'react/no-unused-prop-types': 1, - 'import/no-extraneous-dependencies': ['error', { - devDependencies: true, - }], - 'jsx-a11y/label-has-for': 1 - } -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index e69de29bb..000000000 diff --git a/README.md b/README.md index d9d193c3b..a0f0cbdaf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -#[React Lightning Design System](https://mashmatrix.github.io/react-lightning-design-system/) +# [React Lightning Design System](https://mashmatrix.github.io/react-lightning-design-system/) [![Build Status](https://travis-ci.org/mashmatrix/react-lightning-design-system.svg?branch=master)](https://travis-ci.org/mashmatrix/react-lightning-design-system) +[![npm package](https://img.shields.io/npm/v/react-lightning-design-system.svg)](https://www.npmjs.org/package/react-lightning-design-system) + [Salesforce Lightning Design System](http://www.lightningdesignsystem.com/) components built with React. diff --git a/package.json b/package.json index 6abe03f27..a1f7b9a5c 100644 --- a/package.json +++ b/package.json @@ -83,5 +83,36 @@ "jest": { "testRegex": "(/test/.*|\\.(test|spec))\\.js$", "collectCoverage": true + }, + "babel": { + "presets": ["es2015", "stage-2", "react"], + "plugins": [ + "transform-object-rest-spread", + "transform-runtime", + "transform-class-properties" + ], + "sourceMaps": "inline" + }, + "eslintConfig": { + "parser": "babel-eslint", + "extends": "airbnb", + "env": { + "browser": true + }, + "rules": { + "jsx-quotes": [2, "prefer-single"], + "no-nested-ternary": 0, + "react/jsx-curly-spacing": 0, + "react/no-multi-comp": 0, + "react/jsx-no-bind": 0, + "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], + "jsx-a11y/no-static-element-interactions": 0, + "class-methods-use-this": 0, + "react/no-unused-prop-types": 1, + "import/no-extraneous-dependencies": ["error", { + "devDependencies": true + }], + "jsx-a11y/label-has-for": 1 + } } } From b4f28502f681978661102b73a54a5d9c33cf7250 Mon Sep 17 00:00:00 2001 From: ButuzGOL Date: Mon, 10 Apr 2017 12:48:57 +0300 Subject: [PATCH 2/2] Babel back to file --- .babelrc | 9 +++++++++ package.json | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..11af8be8d --- /dev/null +++ b/.babelrc @@ -0,0 +1,9 @@ +{ + "presets": ["es2015", "stage-2", "react"], + "plugins": [ + "transform-object-rest-spread", + "transform-runtime", + "transform-class-properties" + ], + "sourceMaps": "inline" +} diff --git a/package.json b/package.json index a1f7b9a5c..0121a4ee8 100644 --- a/package.json +++ b/package.json @@ -84,15 +84,6 @@ "testRegex": "(/test/.*|\\.(test|spec))\\.js$", "collectCoverage": true }, - "babel": { - "presets": ["es2015", "stage-2", "react"], - "plugins": [ - "transform-object-rest-spread", - "transform-runtime", - "transform-class-properties" - ], - "sourceMaps": "inline" - }, "eslintConfig": { "parser": "babel-eslint", "extends": "airbnb",