Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add shareable config, linting, README
- Loading branch information
1 parent
c0b691c
commit b876110
Showing
9 changed files
with
6,115 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "eslint-config-fluid", | ||
"globals": { | ||
"fluid": true | ||
}, | ||
"env": { | ||
"browser": true, | ||
"amd": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Authors | ||
|
||
## Copyright Holders | ||
|
||
Copyright 2020 | ||
|
||
This is the list of browserslist-config-fluid copyright holders. It does not list all individual contributors because some have assigned | ||
copyright to an institution, only made minor changes, or their contributions no longer appear in the codebase. | ||
Please see the version control system's revision history for details on contributions. | ||
|
||
* OCAD University | ||
|
||
## Contributors | ||
|
||
Individual contributions can be viewed on the | ||
[Contributors](https://github.com/fluid-project/browserslist-config-fluid/graphs/contributors) page, or through the version control | ||
system's revision history. | ||
|
||
**Note**: Individual authors may not hold copyright. See above "Copyright Holders" section for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
|
||
module.exports = function (grunt) { | ||
// Project configuration. | ||
grunt.initConfig({ | ||
eslint: { | ||
all: ["**/*.js"] | ||
}, | ||
jsonlint: { | ||
all: ["*.json", ".*.json"] | ||
} | ||
}); | ||
|
||
// Load the plugin(s): | ||
grunt.loadNpmTasks("fluid-grunt-eslint"); | ||
grunt.loadNpmTasks("grunt-jsonlint"); | ||
|
||
// Custom tasks: | ||
grunt.registerTask("default", ["lint"]); | ||
grunt.registerTask("lint", "Apply eslint and jsonlint", ["eslint", "jsonlint"]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
BSD 3-Clause License | ||
# BSD 3-Clause License | ||
|
||
Copyright (c) 2020, OCAD University. | ||
All rights reserved. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# browserslist-config-fluid | ||
|
||
Shareable Browserslist config for the Fluid Project. | ||
|
||
## Usage | ||
|
||
To use the [browserslist](https://github.com/browserslist/browserslist) configuration provided by this module, add it as a dev dependency to your project: | ||
|
||
```bash | ||
npm install browserslist-config-fluid --save-dev --save-exact | ||
``` | ||
|
||
Then, add the following to your project's `package.json` file. | ||
|
||
```json | ||
"browserslist": [ | ||
"extends browserslist-config-fluid" | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use strict"; | ||
|
||
// Desktop browsers list. | ||
const desktop = [ | ||
"last 2 Chrome major versions", | ||
"last 2 Firefox major versions", | ||
"last 2 Safari major versions", | ||
"last 2 Edge major versions" | ||
]; | ||
|
||
// Mobile browsers list. | ||
const mobile = [ | ||
"last 2 ChromeAndroid major versions", | ||
"last 2 iOS major versions" | ||
]; | ||
|
||
// Combined list. | ||
const browsers = desktop.concat(mobile); | ||
|
||
module.exports = browsers; |
Oops, something went wrong.