Skip to content

Commit 0431c68

Browse files
committed
Convert from double to single quotes (#13)
1 parent 0115af8 commit 0431c68

File tree

125 files changed

+1729
-1720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+1729
-1720
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"operator-assignment": ["error", "always"],
156156
"padded-blocks": ["error", { "classes": "always" }],
157157
"quote-props": ["error", "consistent"],
158-
"quotes": ["error", "double"],
158+
"quotes": ["error", "single"],
159159
"require-jsdoc": ["error", {
160160
"require": {
161161
"FunctionDeclaration": true,

.jscsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@
9595
"safeContextKeyword": [],
9696
"validateIndentation": 2,
9797
"validateParameterSeparator": ", ",
98-
"validateQuoteMarks": { "mark": "\"", "escape": true }
98+
"validateQuoteMarks": { "mark": "'", "escape": true }
9999
}

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66
### Added
7+
8+
### Changed
9+
10+
### Fixed
11+
12+
### Removed
13+
14+
## [0.4.0] - 2016-05-13
15+
### Added
716
- New rule: prefer-caret-version-dependencies
817
- New rule: prefer-tilde-version-dependencies
918
- New rule: prefer-caret-version-devDependencies
@@ -12,10 +21,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1221
- New rule: prefer-no-version-zero-devDependencies
1322

1423
### Changed
15-
16-
### Fixed
17-
18-
### Removed
24+
- Update to single quotes (ESLint rule: quotes)
1925

2026
## [0.3.0] - 2016-05-10
2127
### Changed

Gruntfile.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
module.exports = function(grunt) {
22
// load in package.json to reference any data from it (like the version number)
33
grunt.initConfig({
4-
pkg: grunt.file.readJSON("package.json")
4+
pkg: grunt.file.readJSON('package.json')
55
});
66

77
// Load Grunt plugins from the config files in the grunt/ directory
8-
grunt.loadTasks("grunt");
9-
require("time-grunt")(grunt);
8+
grunt.loadTasks('grunt');
9+
require('time-grunt')(grunt);
1010

1111
// Register task for running linters
12-
grunt.registerTask("lint", [
13-
"jsonlint",
14-
"jscs",
15-
"eslint"
12+
grunt.registerTask('lint', [
13+
'jsonlint',
14+
'jscs',
15+
'eslint'
1616
]);
1717

1818
// Register task for coverage
1919
// Note: This must be run separately. It cannot be run after the
2020
// normal tests run
21-
grunt.registerTask("testcoverage", [
22-
"clean",
23-
"env:coverage",
24-
"instrument",
25-
"mochaTest",
26-
"storeCoverage",
27-
"makeReport",
28-
"coverage"
21+
grunt.registerTask('testcoverage', [
22+
'clean',
23+
'env:coverage',
24+
'instrument',
25+
'mochaTest',
26+
'storeCoverage',
27+
'makeReport',
28+
'coverage'
2929
]);
3030

3131
// Register task for local testing
32-
grunt.registerTask("local", [
33-
"lint",
34-
"mochaTest:local"
32+
grunt.registerTask('local', [
33+
'lint',
34+
'mochaTest:local'
3535
]);
3636

3737
// default is just lint and mochaTest
38-
grunt.registerTask("default", [
39-
"lint",
40-
"mochaTest:local"
38+
grunt.registerTask('default', [
39+
'lint',
40+
'mochaTest:local'
4141
]);
4242
};

grunt/bump.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module.exports = function(grunt) {
22

3-
grunt.config("bump", {
3+
grunt.config('bump', {
44
options: {
55
files: [
6-
"package.json"
6+
'package.json'
77
],
88
commit: false,
99
push: false,
1010
createTag: false
1111
}
1212
});
1313

14-
grunt.loadNpmTasks("grunt-bump");
14+
grunt.loadNpmTasks('grunt-bump');
1515
};

grunt/clean.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Cleans the dist directory (deletes all files)
22
module.exports = function(grunt) {
33

4-
grunt.config("clean", {
4+
grunt.config('clean', {
55
coverage: {
6-
src: ["tests/coverage/"]
6+
src: ['tests/coverage/']
77
}
88
});
99

10-
grunt.loadNpmTasks("grunt-contrib-clean");
10+
grunt.loadNpmTasks('grunt-contrib-clean');
1111
};

grunt/coverage-check.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Checks to ensure the test coverage meets the minimum thresholds below
22
module.exports = function(grunt) {
33

4-
grunt.config("coverage", {
4+
grunt.config('coverage', {
55
default: {
66
options: {
77
thresholds: {
@@ -10,11 +10,11 @@ module.exports = function(grunt) {
1010
lines: 100,
1111
functions: 100
1212
},
13-
dir: "coverage",
14-
root: "tests"
13+
dir: 'coverage',
14+
root: 'tests'
1515
}
1616
}
1717
});
1818

19-
grunt.loadNpmTasks("grunt-istanbul-coverage");
19+
grunt.loadNpmTasks('grunt-istanbul-coverage');
2020
};

grunt/env.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = function(grunt) {
22

3-
grunt.config("env", {
3+
grunt.config('env', {
44
coverage: {
5-
SRC_DIR_FOR_CODE_COV: "../tests/coverage/instrument/src/"
5+
SRC_DIR_FOR_CODE_COV: '../tests/coverage/instrument/src/'
66
}
77
});
88

9-
grunt.loadNpmTasks("grunt-env");
9+
grunt.loadNpmTasks('grunt-env');
1010
};

grunt/eslint.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module.exports = function(grunt) {
2-
grunt.config("eslint", {
2+
grunt.config('eslint', {
33
options: {
4-
configFile: ".eslintrc.json",
5-
format: "node_modules/eslint-formatter-pretty"
4+
configFile: '.eslintrc.json',
5+
format: 'node_modules/eslint-formatter-pretty'
66
},
77
javascript: [
8-
"src/**/*.js",
9-
"grunt/*.js",
10-
"tests/unit/**/*.js",
11-
"*.js"
8+
'src/**/*.js',
9+
'grunt/*.js',
10+
'tests/unit/**/*.js',
11+
'*.js'
1212
]
1313
});
1414

15-
grunt.loadNpmTasks("grunt-eslint");
15+
grunt.loadNpmTasks('grunt-eslint');
1616
};

grunt/istanbul.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
module.exports = function(grunt) {
22

3-
grunt.config("instrument", {
4-
files: "src/**/*.js",
3+
grunt.config('instrument', {
4+
files: 'src/**/*.js',
55
options: {
66
lazy: true,
7-
basePath: "tests/coverage/instrument/"
7+
basePath: 'tests/coverage/instrument/'
88
}
99
});
1010

11-
grunt.config("storeCoverage", {
11+
grunt.config('storeCoverage', {
1212
options: {
13-
dir: "tests/coverage/reports"
13+
dir: 'tests/coverage/reports'
1414
}
1515
});
1616

17-
grunt.config("makeReport", {
18-
src: "tests/coverage/reports/**/*.json",
17+
grunt.config('makeReport', {
18+
src: 'tests/coverage/reports/**/*.json',
1919
options: {
20-
type: "lcov",
21-
dir: "tests/coverage/reports",
22-
print: "detail"
20+
type: 'lcov',
21+
dir: 'tests/coverage/reports',
22+
print: 'detail'
2323
}
2424
});
2525

26-
grunt.loadNpmTasks("grunt-istanbul");
26+
grunt.loadNpmTasks('grunt-istanbul');
2727
};

0 commit comments

Comments
 (0)