Permalink
Browse files

WEB-322 last for PR.

  • Loading branch information...
1 parent 7520049 commit b1f33c725c68c14c51148f9b788254d84785b86c @brev brev committed Nov 7, 2016
@@ -19,6 +19,12 @@
"arrow-parens": [2, "always"],
"brace-style": [2, "stroustrup"],
"class-methods-use-this": [0],
+ "comma-dangle": [2, {
+ "arrays": "always-multiline",
+ "functions": "never",
+ "imports": "always-multiline",
+ "objects": "always-multiline"
+ }],
"func-names": [0],
"import/extensions": [2, {
"js": "never",
File renamed without changes.
View
@@ -3,12 +3,16 @@
Source code, generators, tooling, and content for Numenta websites and platform.
```shell
-. # https://github.com/numenta/numenta-web
-├── components/ # Shared React View Components for all sites
-├── package.json # Shared npm packages to install for all sites
-├── numenta.com/ # Source for Numenta company site: http://numenta.com
-├── numenta.org/ # Source for Numenta HTM Community site: http://numenta.org
-└── utils/ # Shared helper utilities for all sites
+. # https://github.com/numenta/numenta-web
+├── .eslintrc.json # Shared JS ES6 lint rules, mostly AirBnB defaults + tweaks
+├── .stylelintrc # Shared CSS style lint rules
+├── components/ # Shared React View Components for all sites
+├── LICENSE.txt # Open Source MIT License information.
+├── numenta.com/ # Source for Numenta company site: http://numenta.com
+├── numenta.org/ # Source for Numenta HTM Community site: http://numenta.org
+├── package.json # Shared npm packages to install for all sites
+├── README.md # This file, welcome docs.
+└── utils/ # Shared helper utilities for all sites
```
@@ -95,10 +99,8 @@ will look like the following:**
. # Inside `numenta.com/` or `numenta.org/`
├── .babelrc # Babel ES6 transpiler configuration file
├── .eslintignore # ES lint files and paths to ignore during run
-├── .eslintrc.json # ES lint rules, mostly AirBnB defaults + few tweaks
├── .jestrc.json # Jest testing framework config, assets under test/
├── .stylelintignore # CSS style lint files to ignore
-├── .stylelintrc # CSS style lint rules
├── LICENSE.txt # Open Source MIT License information.
├── README.md # This file, welcome docs.
├── __tests__/ # Shared and Site-specific Component Tests & Mocks, etc.
View
@@ -1,2 +1,4 @@
- Shared `/components` need to have theme style vars passed in from each site
independently somehow.
+- Explain parent/child `package.json` and improve w/monorepo helper via npm.
+- List status of known out-of-date or custom package in readme
@@ -1,24 +0,0 @@
-{
- "extends": [
- "stylelint-config-standard"
- ],
- "rules": {
- "at-rule-empty-line-before": null,
- "comment-empty-line-before": null,
- "comment-no-empty": null,
- "comment-whitespace-inside": null,
- "declaration-block-no-duplicate-properties": [true, {
- "ignoreProperties": ["composes"]
- }],
- "declaration-colon-newline-after": null,
- "indentation": 2,
- "max-empty-lines": 2,
- "property-no-unknown": [true, {
- "ignoreProperties": ["composes"]
- }],
- "rule-non-nested-empty-line-before": null,
- "selector-pseudo-class-no-unknown": [true, {
- "ignorePseudoClasses": ["global"]
- }]
- }
-}
@@ -44,9 +44,9 @@
"predev": "npm run lint",
"dev": "gatsby develop",
"lint": "npm run lint:css && npm run lint:html && npm run lint:js",
- "lint:css": "stylelint \"**/*.css\"",
+ "lint:css": "stylelint --config=../.stylelintrc \"**/*.css\"",
"lint:html": "echo",
- "lint:js": "eslint --ext=js --ext=jsx .",
+ "lint:js": "eslint --config=../.eslintrc.json --ext=js --ext=jsx .",
"preserve": "npm run build",
"serve": "gatsby serve-build",
"pretest": "npm run clean:test",
@@ -4,6 +4,7 @@
import {findIndex} from 'lodash'
import React from 'react'
+
import Section from '../../components/Section'
import SectionAnomaly from './anomaly-detection-benchmark/_Section'
@@ -11,11 +11,10 @@ import moment from 'moment'
import {prefixLink} from 'gatsby-helpers' // eslint-disable-line import/no-unresolved, max-len
import React from 'react'
-import Layout from '../../components/Layout'
-
import {getConfig, getVersion, stamp} from '../../utils/shared'
+import Layout from '../../components/Layout'
-import 'tachyons-base/css/tachyons-base.css' // eslint-disable-line import/imports-first, max-len
+import 'tachyons-base/css/tachyons-base.css' // eslint-disable-line import/first, max-len
import '../static/assets/css/fonts.css'
const config = getConfig()
@@ -1,53 +0,0 @@
-{
- "ecmaFeatures": {
- "classes": true,
- "jsx": true
- },
- "env": {
- "jasmine": true
- },
- "extends": [
- "airbnb",
- "plugin:jasmine/recommended"
- ],
- "parser": "babel-eslint",
- "plugins": [
- "jasmine",
- "react"
- ],
- "rules": {
- "arrow-parens": [2, "always"],
- "brace-style": [2, "stroustrup"],
- "class-methods-use-this": [0],
- "func-names": [0],
- "import/extensions": [2, {
- "js": "never",
- "json": "never",
- "jsx": "never"
- }],
- "import/no-extraneous-dependencies": [0],
- "import/prefer-default-export": [0],
- "jsx-a11y/html-has-lang": [0],
- "max-len": [2, 80],
- "no-restricted-syntax": [2,
- "DebuggerStatement",
- "LabeledStatement",
- "WithStatement"
- ],
- "no-param-reassign": [2, {"props": false}],
- "no-return-assign": [0],
- "no-underscore-dangle": [0],
- "object-curly-spacing": [2, "never"],
- "one-var": [2, {"uninitialized": "always", "initialized": "never"}],
- "one-var-declaration-per-line": [0],
- "padded-blocks": [0],
- "react/jsx-boolean-value": [2, "always"],
- "react/jsx-filename-extension": [1],
- "react/forbid-prop-types": [2, {"forbid": ["any"]}],
- "react/no-danger": [0],
- "react/no-did-mount-set-state": [0],
- "react/no-unescaped-entities": [0],
- "react/require-extension": [0],
- "semi": [2, "never"]
- }
-}
@@ -45,9 +45,9 @@
"predev": "npm run lint",
"dev": "gatsby develop",
"lint": "npm run lint:css && npm run lint:html && npm run lint:js",
- "lint:css": "stylelint \"**/*.css\"",
+ "lint:css": "stylelint --config=../.stylelintrc \"**/*.css\"",
"lint:html": "echo",
- "lint:js": "eslint --ext=js --ext=jsx .",
+ "lint:js": "eslint --config=../.eslintrc.json --ext=js --ext=jsx .",
"preserve": "npm run build",
"serve": "gatsby serve-build",
"pretest": "npm run clean:test",
View
@@ -34,11 +34,11 @@
"catch-links": "github:numenta/catch-links#d6986c48715d69ba9575195002bd1338c4b41933",
"classnames": "2.2.5",
"eslint": "3.9.1",
- "eslint-config-airbnb": "12.0.0",
- "eslint-plugin-import": "1.16.0",
- "eslint-plugin-jasmine": "2.0.0",
+ "eslint-config-airbnb": "13.0.0",
+ "eslint-plugin-import": "2.2.0",
+ "eslint-plugin-jasmine": "2.1.0",
"eslint-plugin-jsx-a11y": "2.2.3",
- "eslint-plugin-react": "6.5.0",
+ "eslint-plugin-react": "6.6.0",
"extract-text-webpack-plugin": "github:michelebertoli/extract-text-webpack-plugin#614c3bb1ed72587218aa644df12bbf514fb77a06",
"favicons-webpack-plugin": "0.0.7",
"front-matter": "2.1.0",

0 comments on commit b1f33c7

Please sign in to comment.