Skip to content

Commit

Permalink
Merge pull request #667 from dlmanning/next
Browse files Browse the repository at this point in the history
Drop support for non-Active LTS and Current releases
  • Loading branch information
xzyfer committed Apr 5, 2018
2 parents 04fb925 + 7656eff commit 44be409
Show file tree
Hide file tree
Showing 8 changed files with 380 additions and 568 deletions.
156 changes: 3 additions & 153 deletions .eslintrc
Expand Up @@ -4,159 +4,9 @@ env:
mocha: true
node: true

# globals:
#########################
## Only add globals if you're absolutely certain they need to be globals
##########################
# console: true

#########################
## set to 0 to allow
## set to 1 to disallow as warning
## set to 2 to disallow as error
#########################
rules:
#########################
## Optional Rules
#########################
# Disallow use of `console`
no-console: 2

# Disallow warning comments
no-warning-comments:
- 1
- terms:
- todo
- fixme
location: anywhere

# Warns when variables are defined but never used
no-unused-vars: 1

# Enforces comma style (first or last)
comma-style:
- 2
- last

# Enforces one true `this` variable
consistent-this:
max-len:
- 2
- self
# Allows dangling underscores in identifiers
no-underscore-dangle: 2

# Enforces function expressions to have a name
func-names: 0

# Set maximum depth of nested callbacks
max-nested-callbacks:
- 1
- 3

#########################
## Core Rules
##########################
# Enforces camel case names
camelcase: 2

# Prohibit use of == and != in favor of === and !==
eqeqeq: 2

# Suppresses warnings about == null comparisons
no-eq-null: 2

# No mixing tabs and spaces, with 2 spaces only
no-mixed-spaces-and-tabs: 2

# Prohibits use of a variable before it is defined
no-use-before-define: 2

# Requires capitalized names for constructor functions
new-cap: 2

# Prohibits use of explicitly undeclared variables
no-undef: 2

# Enforces Use Strict at the top of function scope
strict:
- 2
- global

# Requires variable declarations to be at the top
vars-on-top: 2

# Enforce curly braces around blocks in loops and conditionals
curly: 2

# Prohibits the use of immediate function invocations w/o wrapping in parentheses
wrap-iife: 2

# Prohibits `argument.caller` and `argument.callee`
no-caller: 2

# Requires all `for in` loops to filter object's items
guard-for-in: 2

# Prohibits comparing a variable against itself
no-self-compare: 2
- 120

# Prohibits use of `undefined` variable
no-undefined: 0

# Prohibits nested ternaries
no-nested-ternary: 2

# Enforces a space before blocks
space-before-blocks:
- 2
- always

# Enforces spaces following keywords
keyword-spacing:
- 2
- after: true

# Enforces quoted property names
quote-props:
- 2
- always

# Enforces padded blocks
padded-blocks:
- 1
- never

# Enforce functions as expressions
func-style:
- 2
- expression

# Require brace style
brace-style:
- 2
- stroustrup

# Prohibits Yoda conditions
yoda:
- 2
- never

# Enforce use of single quotation marks for strings.
quotes:
- 2
- single

# Disallow or enforce spaces inside of curly braces in objects.
object-curly-spacing:
- 2
- always

# Disallow or enforce spaces inside of brackets.
array-bracket-spacing:
- 2
- never

# Disallow or enforce spaces inside of computed properties.
computed-property-spacing:
- 2
- never
extends: "airbnb-base"
10 changes: 6 additions & 4 deletions .travis.yml
@@ -1,6 +1,8 @@
sudo: false

language: node_js

node_js:
- "0.10"
- node
- iojs
sudo: false
- lts/boron
- lts/carbon
- current
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -4,6 +4,12 @@ Sass plugin for [Gulp](https://github.com/gulpjs/gulp).

**_Before filing an issue, please make sure you have [Updated to the latest Gulp Sass](https://github.com/dlmanning/gulp-sass/wiki/Update-to-the-latest-Gulp-Sass) and have gone through our [Common Issues and Their Fixes](https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes) section._**

# Support

Only [Active LTS and Current releases][1] are supported.

[1]: https://github.com/nodejs/Release#release-schedule

# Install

```
Expand Down Expand Up @@ -52,7 +58,7 @@ gulp.task('sass:watch', function () {

## Options

Pass in options just like you would for [`node-sass`](https://github.com/sass/node-sass#options); they will be passed along just as if you were using `node-sass`. Except for the `data` option which is used by gulp-sass internally. Using the `file` option is also unsupported and results in undefined behaviour that may change without notice.
Pass in options just like you would for [`node-sass`](https://github.com/sass/node-sass#options); they will be passed along just as if you were using `node-sass`. Except for the `data` option which is used by gulp-sass internally. Using the `file` option is also unsupported and results in undefined behaviour that may change without notice.

For example:

Expand Down
9 changes: 3 additions & 6 deletions appveyor.yml
Expand Up @@ -11,12 +11,9 @@ platform:

environment:
matrix:
- nodejs_version: 0.10
- nodejs_version: 0.12
- nodejs_version: 4
- nodejs_version: 6
- nodejs_version: 8
- nodejs_version: 9
- nodejs_version: lts/boron
- nodejs_version: lts/carbon
- nodejs_version: current

install:
- ps: Install-Product node $env:nodejs_version $env:platform
Expand Down

0 comments on commit 44be409

Please sign in to comment.