Skip to content

Commit

Permalink
add codeclimate config, edit eslintrc config
Browse files Browse the repository at this point in the history
  • Loading branch information
gemfarmer committed Jan 3, 2017
1 parent 0b28c68 commit 4ef25d1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
engines:
rubocop:
enabled: true
eslint:
enabled: true
scss-lint:
enabled: true
ratings:
paths:
- "**.rb"
- "**.js"
- "_sass/**/*"
exclude_paths:
- "lib/tasks/**"
- _sass/_libs/**/*
- _sass/_core/syntax-highlighting.scss
- assets/js/lib/**/*
- bin
- node_modules
- .bundle
- .sass-cache
26 changes: 13 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ env:
extends: eslint:recommended

rules:
brace-style: [warn, 1tbs]
curly: [warn, multi-line]
eqeqeq: warn
func-call-spacing: warn
linebreak-style: [warn, unix]
max-len: [warn, {code: 80}]
new-parens: warn
no-undef-init: warn
no-unused-expressions: warn
no-whitespace-before-property: warn
space-before-blocks: warn
space-before-function-paren: [warn, never]
spaced-comment: warn
brace-style: [1, "1tbs"]
curly: [1, "multi-line"]
eqeqeq: 1
func-call-spacing: 1
linebreak-style: [1, "unix"]
max-len: [1, 80]
new-parens: 1
no-undef-init: 1
no-unused-expressions: 1
no-whitespace-before-property: 1
space-before-blocks: 1
space-before-function-paren: [1, "never"]
spaced-comment: 1
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Code Climate](https://codeclimate.com/github/18F/micropurchase/badges/gpa.svg)](https://codeclimate.com/github/18F/18f.gsa.gov)

# 18F’s flagship website

This repo houses the 18F website. We use the [Draft U.S. Web Design standards](https://standards.usa.gov/) as a front end framework. The site is built and served through [the Federalist platform](https://federalist.18f.gov).
Expand Down

0 comments on commit 4ef25d1

Please sign in to comment.